This bounty is no longer available
Web3 DAO | Optimism Logo

Make `DeployAndVerifyAndThen` more robust against errors in etherscan verification

Organization

Optimism

Deadline

N/A

Status

ENDED


INSTRUCTIONS

Description

#1722 Adds source code verification on Etherscan during the deployment process. That step is wrapped in a try/catch. We should add better error handling to determine when to catch and when to continue.

Describe the solution you'd like

  1. Understand the Etherscan verification API, and the different errors it returns.
  2. Enumerate which errors should be caught and which should not.
  3. Add logic to identify and handle those errors appropriately.