fix(docs): use Blockscout verifier flags in Foundry verification example - #633
Open
schoolkamsergj wants to merge 1 commit into
Open
fix(docs): use Blockscout verifier flags in Foundry verification example#633schoolkamsergj wants to merge 1 commit into
schoolkamsergj wants to merge 1 commit into
Conversation
Ink Sepolia contract verification goes through Blockscout, not Etherscan. The --etherscan-api-key flag causes forge verify-contract to fail with an unsupported chain error. Replaces it with --verifier blockscout, --verifier-url and --verifier-api-key, and updates the section wording accordingly. Closes inkonchain#609
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Foundry deployment guide uses
--etherscan-api-keyin the contract verification example, but Ink Sepolia verifies through Blockscout, not Etherscan. As reported in #609, this makesforge verify-contractfail with an "unsupported chain" error.Change
Before:
forge verify-contract <DEPLOYED_CONTRACT_ADDRESS> src/InkContract.sol:InkContract
--chain-id 763373
--etherscan-api-key $BLOCKSCOUT_API_KEY
After:
orge verify-contract <DEPLOYED_CONTRACT_ADDRESS> src/InkContract.sol:InkContract
--chain-id 763373
--verifier blockscout
--verifier-url https://explorer-sepolia.inkonchain.com/api
--verifier-api-key $BLOCKSCOUT_API_KEY
Also updates the section wording from "on Etherscan" to "on Blockscout" for consistency.
Notes
Minimal diff: 2 lines removed, 4 added, no other content touched. Commit is GPG-signed.
Closes #609