Skip to content

Commit 2b31f4b

Browse files
authored
fix(docs): update Hardhat Foundry starter kit instructions to include yarn alternatives and use npm install with force (#1209)
1 parent b50d5b8 commit 2b31f4b

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

docs/network/guides/hardhat-foundry-starter-kit.mdx

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,13 @@ The starter kit includes a basic setup for configuring Hardhat and Foundry, alon
6060
2. Install the project dependencies.
6161

6262
```bash
63-
npm install
63+
yarn
64+
```
65+
66+
or alternatively:
67+
68+
```bash
69+
npm install --force
6470
```
6571

6672
3. Copy the example environment file and update it with your settings.
@@ -144,6 +150,12 @@ The starter kit includes a basic setup for configuring Hardhat and Foundry, alon
144150

145151
1. Compile the smart contracts to generate the necessary artifacts.
146152

153+
```bash
154+
yarn hardhat compile
155+
```
156+
157+
or alternatively:
158+
147159
```bash
148160
npx hardhat compile
149161
```
@@ -152,6 +164,12 @@ The starter kit includes a basic setup for configuring Hardhat and Foundry, alon
152164

153165
2. Run the provided test suite to ensure everything is set up correctly.
154166

167+
```bash
168+
yarn hardhat test
169+
```
170+
171+
or alternatively:
172+
155173
```bash
156174
npx hardhat test
157175
```
@@ -160,6 +178,12 @@ The starter kit includes a basic setup for configuring Hardhat and Foundry, alon
160178

161179
Optionally you can add the API keys for [Flare Explorer](https://flare-explorer.flare.network) in the `.env` file.
162180

181+
```bash
182+
yarn hardhat run scripts/tryDeployment.ts
183+
```
184+
185+
or alternatively:
186+
163187
```bash
164188
npx hardhat run scripts/tryDeployment.ts
165189
```

0 commit comments

Comments
 (0)