Skip to content

Commit 619d4b6

Browse files
Wait for 5 confirmations before veryfing TokenholderGovernor
Without the change, the deployment/verification was logging: ``` Verifying contract 0x... on Etherscan... Nothing to compile NomicLabsHardhatPluginError: Failed to send contract verification request. Endpoint URL: https://api-goerli.etherscan.io/api Reason: The Etherscan API responded that the address 0x... does not have bytecode. This can happen if the contract was recently deployed and this fact hasn't propagated to the backend yet. Try waiting for a minute before verifying your contract. If you are invoking this from a script, try to wait for five confirmations of your contract deployment transaction before running the verification subtask. ```
1 parent b6b55e2 commit 619d4b6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

deploy/31_deploy_tokenholder_governor.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
2424
})
2525

2626
if (hre.network.tags.etherscan) {
27+
await hre.ethers.provider.waitForTransaction(
28+
timelock.transactionHash,
29+
5,
30+
300000
31+
)
2732
await helpers.etherscan.verify(
2833
timelock,
2934
"contracts/governance/TokenholderGovernor.sol:TokenholderGovernor"

0 commit comments

Comments
 (0)