Closed jack-wombat closed 1 year ago
Ping @wighawag
hmm, it should work. DO you have reproduction repo I could look at ?
I figured this out. I need to add also localhost to the external deployments config.
Example:
config.external = {
deployments: {
hardhat: ['deployments/mainnet'],
localhost:['deployments/mainnet']
},
}
Does hardhat-deploy skips loading existing and external deployments when
--no-deploy
is present? I was looking for a way to have local hardhat simulate mainnet as much as possible. I came across to the external deployments config in https://github.com/wighawag/hardhat-deploy/issues/56.However, when I run
hh node
with the--no-deploy
flag, theawait deployments.all()
is empty. Butawait deployments.getArtifact()
still seem to work. Most of my code is usingdeployments.get()
which relies ondeployments.all()
.