You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
forge create --rpc-url sepolia --private-key $PRIVATE_KEY src/Counter.sol:Counter --verify
Submitting verification for [src/Counter.sol:Counter] 0x128Abc30357bE673C20D08756B0C1ab304623Fe4.
Encountered an error verifying this contract:
Response: `NOTOK`
Details: `Missing or unsupported chainid parameter (required for v2 api), please see https://api.etherscan.io/v2/chainlist for the list of supported chainids
For the already verified message we should probably apply same defaults to deploy as for verify args, that is
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (5c69a9d 2024-10-28T00:23:24.836557329Z)
What command(s) is the bug in?
forge create
Operating System
Linux
Describe the bug
forge create CONTRACT --verify --private-key $PRIVATE_KEY --rpc-url https://rpc.ankr.com/eth_sepolia --etherscan-api-key $ETHERSCAN_KEY
always prints "is already verified. Skipping verification."With
RUST_LOG=trace
With etherscan v2 endpoint
--verifier-url "https://api.etherscan.io/v2/api"
Since there's no way to configure the verifier, this only supports
etherscan
verification?foundry/crates/forge/bin/cmd/create.rs
Lines 335 to 365 in a428ba6
skip_is_verified_check
cannot be set byforge create
:foundry/crates/verify/src/etherscan/mod.rs
Lines 65 to 75 in a428ba6
foundry/crates/verify/src/etherscan/mod.rs
Lines 233 to 248 in a428ba6
The
foundry-rs/block-explorers:contract_abi()
call:https://github.com/foundry-rs/block-explorers/blob/a4582e4b300e70ec7b6224c352278625a28eec8d/crates/block-explorers/src/contract.rs#L364-L395
The text was updated successfully, but these errors were encountered: