Open dalechyn opened 2 years ago
Putting console.log(all) before this code and after proves you the bug.
What happens ?
DOes it not get filled again via the push on line 1321 ?
Putting console.log(all) before this code and after proves you the bug.
What happens ?
DOes it not get filled again via the push on line 1321 ?
It pushes it back without deployed addresses
Describe the bug I need to use truffle deployments. My config is next:
There I have truffle artifacts with deployment info. My
defaultNetwork
is set astestnet
.After running
hardhat export --export-all
what I get in the end are valid deployments forlive
network, and empty deployments fortestnet
network (no addresses).Then I found this code: https://github.com/wighawag/hardhat-deploy/blob/283ec68d4a2f420a8b23785f9efc58fd62451240/src/DeploymentsManager.ts#L1315-L1325
Putting
console.log(all)
before this code and after proves you the bug.So I used the
hardhat export --export-all
with--network hardhat
.Now the contract deployments file is valid.
To Reproduce Steps to reproduce the behavior:
defaultNetwork
as one of the networks you have deployed.3.defaultNetwork
are empty. Expected behavior Exporting all contracts without setting adefaultNetwork: 'hardhat'
as I mentioned above. versionsAdditional context I suppose it may fail not only with truffle deployments