|
@@ -72,19 +72,17 @@ First, you need to install the dependencies:
|
|
|
$ pnpm install
|
|
|
```
|
|
|
|
|
|
-Then, you need to set up all the required configuration variables and, if necessary, the optional ones. To assist with
|
|
|
-the setup process, run `npx hardhat vars setup`. For example, to set a BIP-39 compatible mnemonic variable, execute
|
|
|
-`npx hardhat vars set MNEMONIC`. If you do not already have a mnemonic, you can generate one using this
|
|
|
-[website](https://iancoleman.io/bip39/).
|
|
|
-
|
|
|
-Example:
|
|
|
+Then, you need to set up all the required
|
|
|
+[Hardhat Configuration Variables](https://hardhat.org/hardhat-runner/docs/guides/configuration-variables) and, if
|
|
|
+necessary, the optional ones. To assist with the setup process, run `npx hardhat vars setup`. For example, to set a
|
|
|
+BIP-39 compatible mnemonic variable, execute:
|
|
|
|
|
|
```sh
|
|
|
-npx hardhat vars set MNEMONIC "here is where your twelve words mnemonic should be put my friend"
|
|
|
+$ npx hardhat vars set MNEMONIC
|
|
|
+? Enter value: ‣ "here is where your twelve words mnemonic should be put my friend"
|
|
|
```
|
|
|
|
|
|
-For more info on how to set the `Hardhat Configuration Variables` visit the docs
|
|
|
-[here](https://hardhat.org/hardhat-runner/docs/guides/configuration-variables).
|
|
|
+If you do not already have a mnemonic, you can generate one using this [website](https://iancoleman.io/bip39/).
|
|
|
|
|
|
### Compile
|
|
|
|
|
@@ -136,15 +134,12 @@ $ pnpm coverage
|
|
|
|
|
|
### Report Gas
|
|
|
|
|
|
-See the gas usage per unit test and average gas per method call by providing the optional configuration variable
|
|
|
-`REPORT_GAS`:
|
|
|
+See the gas usage per unit test and average gas per method call:
|
|
|
|
|
|
```sh
|
|
|
-$ HARDHAT_VAR_REPORT_GAS=true pnpm test
|
|
|
+$ REPORT_GAS=true pnpm test
|
|
|
```
|
|
|
|
|
|
-The prefix `HARDHAT_VAR_` is needed to temporarily set a Hardhat Configuration Variable via ENV variables.
|
|
|
-
|
|
|
### Clean
|
|
|
|
|
|
Delete the smart contract artifacts, the coverage reports and the Hardhat cache:
|