I'm trying to access the deployment block number for a proxy deployment. Given code like the following:
const deployment = await upgrades.deployProxy(Contract, { kind: "uups" });
await deployment.deployTransaction.wait(3);
Is there any way to get the deployment block in this same script?
Debugging deployment
eg. console.log(deployment)
gives me:
deployTransaction: {
hash: '0xc6a659bcc3a858a38c3224774128e376e13080f501a465d3496d94a5667dfc0f',
type: 0,
accessList: null,
blockHash: null,
blockNumber: null,
transactionIndex: null,
confirmations: 0,
from: '0x93A5f58566D436Cae0711xxxxxxxxxxxxxxxxxxx',
gasPrice: BigNumber { value: "8000000000" },
gasLimit: BigNumber { value: "406736" },
to: null,
value: BigNumber { value: "0" },
I'd like to get blockNumber
Thanks in advance!