Skip to content

Commit e734c2d

Browse files
authored
fix(verfy): add blockscout exception for resp status 0 when contract not indexed (#10008)
fix(verfy): chiado blockscout exception, resp status 0 when contract not indexed yet
1 parent 09b0a0c commit e734c2d

File tree

1 file changed

+4
-2
lines changed
  • crates/verify/src/etherscan

1 file changed

+4
-2
lines changed

crates/verify/src/etherscan/mod.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,11 @@ impl VerificationProvider for EtherscanVerificationProvider {
102102
return Ok(None)
103103
}
104104

105-
if resp.result.starts_with("Unable to locate ContractCode at") {
105+
if resp.result.starts_with("Unable to locate ContractCode at") ||
106+
resp.result.starts_with("The address is not a smart contract")
107+
{
106108
warn!("{}", resp.result);
107-
return Err(eyre!("Etherscan could not detect the deployment."))
109+
return Err(eyre!("Could not detect the deployment."))
108110
}
109111

110112
warn!("Failed verify submission: {:?}", resp);

0 commit comments

Comments
 (0)