Skip to content

Commit

Permalink
clean up a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
spsjvc committed Oct 3, 2024
1 parent 38bfe25 commit 1d7174c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/utils/getRollupCreatorAddress.unit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,19 @@ it(`successfully returns address for a registered custom parent chain`, () => {
const tokenBridgeCreator = '0x2000000000000000000000000000000000000000';

const chain: CustomParentChain = {
...createCustomChain({ id: 123 }),
...createCustomChain({ id: 123_456 }),
contracts: {
rollupCreator: { address: rollupCreator },
tokenBridgeCreator: { address: tokenBridgeCreator },
},
};

registerCustomParentChain(chain);

const client = createPublicClient({
chain,
transport: http(),
});

registerCustomParentChain(chain);

expect(getRollupCreatorAddress(client)).toEqual(rollupCreator);
});
6 changes: 3 additions & 3 deletions src/utils/getTokenBridgeCreatorAddress.unit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,19 @@ it(`successfully returns address for a registered custom parent chain`, () => {
const tokenBridgeCreator = '0x2000000000000000000000000000000000000000';

const chain: CustomParentChain = {
...createCustomChain({ id: 123 }),
...createCustomChain({ id: 123_456 }),
contracts: {
rollupCreator: { address: rollupCreator },
tokenBridgeCreator: { address: tokenBridgeCreator },
},
};

registerCustomParentChain(chain);

const client = createPublicClient({
chain,
transport: http(),
});

registerCustomParentChain(chain);

expect(getTokenBridgeCreatorAddress(client)).toEqual(tokenBridgeCreator);
});

0 comments on commit 1d7174c

Please sign in to comment.