Skip to content

Commit 1fdfe37

Browse files
committed
Fixing hardhat-foundry combined setup page
1 parent b626dc1 commit 1fdfe37

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/src/content/hardhat-runner/docs/advanced/hardhat-and-foundry.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -78,30 +78,30 @@ If you have an existing Foundry project and you want to use Hardhat in it, follo
7878

7979
First, if you don't have a `package.json` already in your project, create one with `npm init`.
8080

81-
Then install Hardhat and the [`@nomicfoundation/hardhat-foundry`](/hardhat-runner/plugins/nomicfoundation-hardhat-foundry) plugin:
81+
Then install Hardhat and the [`@nomicfoundation/hardhat-foundry`](/hardhat-runner/plugins/nomicfoundation-hardhat-foundry) and [`@nomicfoundation/hardhat-toolbox`](/hardhat-runner/plugins/nomicfoundation-hardhat-toolbox) plugins:
8282

8383
::::tabsgroup{options="npm 7+,npm 6,yarn"}
8484

8585
:::tab{value="npm 7+"}
8686

8787
```
88-
npm install --save-dev hardhat @nomicfoundation/hardhat-foundry
88+
npm install --save-dev @nomicfoundation/hardhat-foundry @nomicfoundation/hardhat-toolbox
8989
```
9090

9191
:::
9292

9393
:::tab{value="npm 6"}
9494

9595
```
96-
npm install --save-dev hardhat @nomicfoundation/hardhat-foundry
96+
npm install --save-dev @nomicfoundation/hardhat-foundry @nomicfoundation/hardhat-toolbox
9797
```
9898

9999
:::
100100

101101
:::tab{value=yarn}
102102

103103
```
104-
yarn add --dev hardhat @nomicfoundation/hardhat-foundry
104+
yarn add --dev hardhat @nomicfoundation/hardhat-foundry @nomicfoundation/hardhat-toolbox
105105
```
106106

107107
:::
@@ -111,6 +111,7 @@ yarn add --dev hardhat @nomicfoundation/hardhat-foundry
111111
After that, initialize a Hardhat project with `npx hardhat init`. Choose the "Create an empty hardhat.config.js" option, and then import the plugin in `hardhat.config.js`:
112112

113113
```javascript
114+
require("@nomicfoundation/hardhat-toolbox");
114115
require("@nomicfoundation/hardhat-foundry");
115116
```
116117

0 commit comments

Comments
 (0)