Skip to content

Commit

Permalink
Merge pull request NomicFoundation#1140 from nomiclabs/fix/plugin-rea…
Browse files Browse the repository at this point in the history
…dmes

Correct a few references to obsolete `usePlugin` in readmes.
  • Loading branch information
alcuadrado committed Dec 29, 2020
2 parents 0f81131 + 52ae176 commit 2aecc0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/hardhat-ethers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ There are no additional steps you need to take for this plugin to work.
Install it and access ethers through the Hardhat Runtime Environment anywhere you need it (tasks, scripts, tests, etc). For example, in your `hardhat.config.js`:

```js
usePlugin("@nomiclabs/hardhat-ethers");
require("@nomiclabs/hardhat-ethers");

// task action function receives the Hardhat Runtime Environment as second argument
task(
Expand Down
4 changes: 2 additions & 2 deletions packages/hardhat-web3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ This plugin adds the following elements to the `HardhatRuntimeEnvironment`:

## Usage
Install it and access Web3.js through the Hardhat Runtime Environment anywhere you need it (tasks, scripts, tests, etc). For example, in your `hardhat.config.js`:
```
usePlugin("@nomiclabs/hardhat-web3");
```js
require("@nomiclabs/hardhat-web3");

// task action function receives the Hardhat Runtime Environment as second argument
task("accounts", "Prints accounts", async (_, { web3 }) => {
Expand Down

0 comments on commit 2aecc0e

Please sign in to comment.