diff --git a/sdk/test/unit/context.test.ts b/sdk/test/unit/context.test.ts index 4c5ca332..af8edd36 100644 --- a/sdk/test/unit/context.test.ts +++ b/sdk/test/unit/context.test.ts @@ -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 + ); } }); });