Closed ahmohamed closed 5 months ago
Hey, @ahmohamed the deploymentTransaction
is not populated, that value is only set if the contract instance was deployed through an Ethers contract factory: https://docs.ethers.org/v6/api/contract/#BaseContract-deploymentTransaction
As a note, you shouldn't need the await count.waitForDeployment()
, once ignition.deploy
returns all the contracts should be deployed (or an error will be thrown).
Thanks @kanej. I didn’t realise that. The code that I'm migrating to ignition did use contract factory, so that explains why it was present.
So now with ignition, is there an alternate way to get the deployed tx? For example, to wait for x confirmations or to query the gas used?
RE note: I suspected it's not needed, but wanted to cover all bases ;)
There is not a way to get access easily programmatically.
The deployment transaction is recorded into the logging journal ./ignition/deployments/<deploymentid>/journal.jsonl
, but it is not easily accessible.
Thanks for making this nice deployment package. I am trying to migrate code from
hardhat-deploy
to using ignition modules. I'm usingethers
V6 and want to fetch thedeploymentTransaction
of the contract, but it's always null. What am I missing here?