I have written a code in hardhat deploy script to fetch the exact block number at which the contract has been executed, but it usually returns the block next to the original. Any idea how to get the exact block?
My Code:
token = await new DevToken__factory(owner).deploy(1000);
let contract = await token.deployed();
let block = await contract.provider?.getBlockNumber();