Open morandalex opened 1 year ago
you need to specify a network
instead of
yarn hardhat deploy --export-all ./src/contracts_data.json
you have to execute:
yarn hardhat --network <my-network> deploy --export-all ./src/contracts_data.json
And I suggest you export after all is deployed so
yarn hardhat --network <my-network> deploy
yarn hardhat --network <my-second-network> deploy
...
yarn hardhat export --export-all ./src/contracts_data.json
@wighawag thanks!
Describe the bug I am trying to export several network deployments into a single file. but every time I deploy , I see that the precedent newtork deploynent is overwritten by the new one.
I am using the following deploy script:
To Reproduce
yarn hardhat deploy --export-all ./src/contracts_data.json
Expected behavior I should se in the file the list of different network deployments
versions
Additional context anything else