Skip to content

fix(verify): warn and fall back to Sourcify when ETHERSCAN_API_KEY is set on unsupported chain#14765

Open
mablr wants to merge 4 commits into
masterfrom
mablr/fallback_etherscan_unsupported_chain
Open

fix(verify): warn and fall back to Sourcify when ETHERSCAN_API_KEY is set on unsupported chain#14765
mablr wants to merge 4 commits into
masterfrom
mablr/fallback_etherscan_unsupported_chain

Conversation

@mablr
Copy link
Copy Markdown
Collaborator

@mablr mablr commented May 14, 2026

Motivation

Closes #10774

When the user does not pass --verifier but ETHERSCAN_API_KEY is set, we defaulted to Etherscan for any chain, including chains with no known Etherscan API URL, which would then fail at verification time. Now we fall back to Sourcify.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

set on unsupported chain

Co-authored-by: Amp <amp@ampcode.com>
Comment thread crates/verify/src/verify.rs
Comment thread crates/forge/src/cmd/create.rs Outdated
@mablr mablr requested a review from figtracer May 14, 2026 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

bug(forge script): if ETHERSCAN_API_KEY is set and --verify is passed it will try to verify via Etherscan no matter if Etherscan supports the chain

2 participants