In my test I would like to get the block or block number of when the contract was deployed.

const instance = await MyContract.deployed()
const contractDeploymentBlockNumber = await instance.?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.