Skip to content

Commit

Permalink
test: fix failin test in context.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
josemarinas committed Feb 29, 2024
1 parent b6c1a20 commit 437f788
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions sdk/test/unit/context.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,19 +284,12 @@ describe('Context instances', () => {
for (const provider of context.web3Providers) {
expect(provider).toBeInstanceOf(JsonRpcProvider);
expect(provider.connection.url).toBe('https://goerli.base.org/');
provider
.getNetwork()
.then(nw => {
expect(nw.chainId).toEqual(84531);
expect(nw.name).toEqual('baseGoerli');
expect(nw.ensAddress).toEqual(
LIVE_CONTRACTS[SupportedVersion.LATEST].baseGoerli
.ensRegistryAddress
);
})
.catch(err => {
throw err;
});
const network = provider.network;
expect(network.chainId).toEqual(84531);
expect(network.name).toEqual('baseGoerli');
expect(network.ensAddress).toEqual(
LIVE_CONTRACTS[SupportedVersion.LATEST].baseGoerli.ensRegistryAddress
);
}
});
});

0 comments on commit 437f788

Please sign in to comment.