Add `npm start` to start development node
It also creates a JSON file with addresses of the deployed contracts.
This commit is contained in:
parent
a69a6d6975
commit
a794141308
|
@ -1,9 +1,4 @@
|
||||||
node_modules
|
node_modules
|
||||||
.env
|
|
||||||
coverage
|
|
||||||
coverage.json
|
|
||||||
typechain
|
|
||||||
|
|
||||||
#Hardhat files
|
|
||||||
cache
|
cache
|
||||||
artifacts
|
artifacts
|
||||||
|
deployment-localhost.json
|
||||||
|
|
|
@ -14,6 +14,13 @@ To run the tests, execute the following commands:
|
||||||
npm install
|
npm install
|
||||||
npm test
|
npm test
|
||||||
|
|
||||||
|
To start a local Ethereum node with the contracts deployed, execute:
|
||||||
|
|
||||||
|
npm start
|
||||||
|
|
||||||
|
This will create a `deployment-localhost.json` file containing the addresses of
|
||||||
|
the deployed contracts.
|
||||||
|
|
||||||
Overview
|
Overview
|
||||||
--------
|
--------
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
"name": "dagger-contracts",
|
"name": "dagger-contracts",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "hardhat test"
|
"test": "hardhat test",
|
||||||
|
"start": "hardhat node --export 'deployment-localhost.json'"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@nomiclabs/hardhat-ethers": "^2.0.2",
|
"@nomiclabs/hardhat-ethers": "^2.0.2",
|
||||||
|
|
Loading…
Reference in New Issue