makerdao / auction-demo-keeper

Apache License 2.0
33 stars 19 forks source link

added kovan config file [ch7728] #7

Closed liberuum closed 3 years ago

liberuum commented 3 years ago

Purpose of this PR is to confirm that the wallet module accepts a KOVAN Infura RPC url and it is functional. The 'basic connectivity' test confirms that the urls works by reading the network ID.

To test that the Kovan RPC URL is validated by ethers js I have made some manual changes in the tests/keeper.test.jsfile. I've changed network.rpcURL = 'http://localhost:2000'; to network.rpcURL = 'infura_url on line 16 and ran the below test function which should test that the kovan network ID is 42

test('basic connectivity', async () => {
  let id = await network.provider.getNetwork();
  expect(typeof id.chainId).toBe(42);
});