Skip to content

Commit

Permalink
Updating instructions to be use current Web3
Browse files Browse the repository at this point in the history
Does the user also need to run yarn add web3 in `packages/hardhat/package.json`?
  • Loading branch information
BananaNeil authored Oct 25, 2021
1 parent 4adc124 commit d18e2ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/advanced/hardhat-runtime-environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ extendEnvironment((hre) => {
hre.Web3 = Web3;

// hre.network.provider is an EIP1193-compatible provider.
hre.web3 = new Web3(new Web3HTTPProviderAdapter(hre.network.provider));
hre.web3 = new Web3(hre.network.provider);

});
```

0 comments on commit d18e2ce

Please sign in to comment.