I have never encountered this problem but noticed it while looking at the Hardhat source code:
if (etherscanResponse.isBytecodeMissingInNetworkError()) {
throw new NomicLabsHardhatPluginError(
pluginName,
`Failed to send contract verification request.
Endpoint URL: ${url}
Reason: The Etherscan API responded that the address ${req.contractaddress} 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.`
);
}
We should probably offering a similar error handling here.
Specification
Describe the syntax and semantics of how you would like to see this feature implemented. The more detailed the better!
Remember, your feature is much more likely to be included if it does not involve any breaking changes.
Dependencies
Include links to any open issues that must be resolved before this feature can be implemented.
Overview
I have never encountered this problem but noticed it while looking at the Hardhat source code:
We should probably offering a similar error handling here.
Specification
Describe the syntax and semantics of how you would like to see this feature implemented. The more detailed the better!
Remember, your feature is much more likely to be included if it does not involve any breaking changes.
Dependencies
Include links to any open issues that must be resolved before this feature can be implemented.