Skip to content

fix: read the Etherscan key from ETHERSCAN_API_KEY - #94

Merged
kdembler merged 1 commit into
mainfrom
fix/etherscan-key-env
Oct 13, 2026
Merged

kdembler merged 1 commit into
mainfrom
fix/etherscan-key-env

Conversation

@kdembler

Copy link
Copy Markdown
Contributor

The Etherscan keys hardcoded in packages/contracts/foundry.toml are dead: verifying the Q3 2026 testnet distributor failed with Invalid API Key (#err2).

  • foundry.toml reads ${ETHERSCAN_API_KEY} (one Etherscan V2 key covers all chains). Set it in your shell or in packages/contracts/.env, which is gitignored and loaded by forge. forge build works without it. The dead arbitrum-goerli entry is gone.
  • testnet-rewards build now prints forge create … --verify --verifier etherscan, so the distributor is verified on Arbiscan; Sourcify stays as a keyless fallback. README updated.

🤖 Generated with Claude Code

The hardcoded keys in packages/contracts/foundry.toml are rejected
("Invalid API Key"). Read one Etherscan V2 key from the environment or a
gitignored .env instead, and drop the dead arbitrum-goerli entry.

testnet-rewards now prints a deploy command that verifies on Arbiscan,
where operators look, and mentions Sourcify as a keyless alternative.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@netlify

netlify Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

❌ Deploy Preview for subsquid-contract-state failed.

Name Link
🔨 Latest commit b2a2d49
🔍 Latest deploy log https://app.netlify.com/projects/subsquid-contract-state/deploys/6ace13059b8be2dba2e85ee9

@kdembler
kdembler merged commit 3a619c5 into main Oct 13, 2026
2 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant