wighawag / hardhat-deploy

hardhat deployment plugin
MIT License
1.17k stars 283 forks source link

Catch and ignore etherscan verification error when getabi fails #491

Open TylerEther opened 8 months ago

TylerEther commented 8 months ago

This PR catches an etherscan verification error when the getabi action fails, and proceeds with the verification attempt.

Some block explorers may not support the getabi action, such as Evmos' Escan. When attempting verification with Escan, this plugin fails at const abiResponse = await axios.get( and verification terminates. This bug fix catches the error and proceeds with verification.