Skip to content
This repository was archived by the owner on Oct 1, 2025. It is now read-only.

Commit 1d02a42

Browse files
justussohNebulis
authored andcommitted
fix: update cost of deploying token registry
1 parent d8f5cf3 commit 1d02a42

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/implementations/deploy/document-store/document-store.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ describe("document-store", () => {
6464

6565
expect(passedSigner.privateKey).toBe(`0x${deployParams.key}`);
6666
expect(mockedDeploy.mock.calls[0][0]).toStrictEqual(deployParams.storeName);
67-
// looks like the pattern is somethin like 1000000000 or 2000000000
68-
expect(mockedDeploy.mock.calls[0][1].gasPrice.toString()).toStrictEqual(expect.stringMatching(/\d000000000/));
67+
// price should be any length string of digits
68+
expect(mockedDeploy.mock.calls[0][1].gasPrice.toString()).toStrictEqual(expect.stringMatching(/\d+/));
6969
expect(instance.contractAddress).toBe("contractAddress");
7070
});
7171

src/implementations/deploy/title-escrow-creator/title-escrow-creator.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ describe("token-registry", () => {
5959
const passedSigner: Wallet = mockedTokenFactory.mock.calls[0][0];
6060

6161
expect(passedSigner.privateKey).toBe(`0x${deployParams.key}`);
62-
// looks like the pattern is somethin like 1000000000 or 2000000000
63-
expect(mockedDeploy.mock.calls[0][0].gasPrice.toString()).toStrictEqual(expect.stringMatching(/\d000000000/));
62+
// price should be any length string of digits
63+
expect(mockedDeploy.mock.calls[0][0].gasPrice.toString()).toStrictEqual(expect.stringMatching(/\d+/));
6464
expect(instance.contractAddress).toBe("contractAddress");
6565
});
6666

src/implementations/deploy/title-escrow/title-escrow.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ describe("token-registry", () => {
7575
expect(mockedDeploy.mock.calls[0][1]).toEqual("0x0000000000000000000000000000000000000001");
7676
expect(mockedDeploy.mock.calls[0][2]).toEqual("0x0000000000000000000000000000000000000002");
7777
expect(mockedDeploy.mock.calls[0][3]).toEqual("0x0000000000000000000000000000000000000003");
78-
// looks like the pattern is somethin like 1000000000 or 2000000000
79-
expect(mockedDeploy.mock.calls[0][4].gasPrice.toString()).toStrictEqual(expect.stringMatching(/\d000000000/));
78+
// price should be any length string of digits
79+
expect(mockedDeploy.mock.calls[0][4].gasPrice.toString()).toStrictEqual(expect.stringMatching(/\d+/));
8080
expect(instance.contractAddress).toBe("contractAddress");
8181
});
8282

src/implementations/deploy/token-registry/token-registry.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ describe("token-registry", () => {
6767
expect(passedSigner.privateKey).toBe(`0x${deployParams.key}`);
6868
expect(mockedDeploy.mock.calls[0][0]).toEqual(deployParams.registryName);
6969
expect(mockedDeploy.mock.calls[0][1]).toEqual(deployParams.registrySymbol);
70-
// looks like the pattern is somethin like 1000000000 or 2000000000
71-
expect(mockedDeploy.mock.calls[0][2].gasPrice.toString()).toStrictEqual(expect.stringMatching(/\d000000000/));
70+
// price should be any length string of digits
71+
expect(mockedDeploy.mock.calls[0][2].gasPrice.toString()).toStrictEqual(expect.stringMatching(/\d+/));
7272
expect(instance.contractAddress).toBe("contractAddress");
7373
});
7474

0 commit comments

Comments
 (0)