foundry icon indicating copy to clipboard operation
foundry copied to clipboard

--verifier-url in forge verify-contract doesn't change the URL that the contract is submitted for verifciation

Open rori4 opened this issue 2 months ago • 1 comments

Component

Forge

Have you ensured that all of these are up to date?

  • [X] Foundry
  • [X] Foundryup

What version of Foundry are you on?

forge 0.2.0 (ba9fa20 2024-06-24T00:23:20.410766000Z)

What command(s) is the bug in?

forge verify-contract $address $contract_name --verifier-url $verifierUrl --etherscan-api-key $VERIFIER_API_KEY --retries 10 --delay 10 --watch

Operating System

macOS (Apple Silicon)

Describe the bug

When running a manual contract verification and the passed verfifier-url is one it still defaults to Etherscan's.

Submitted contract for verification:
        Response: `OK`
        GUID: `0xc678dc1bb9f0d78b42c125633bc2daf726fdef1f`
        URL: https://etherscan.io/address/0xc678dc1bb9f0d78b42c125633bc2daf726fdef1f
Contract verification status:
...

Although I have passed another url

When a contract has been verified at creation time there is no issue like that

rori4 avatar Jun 25 '24 13:06 rori4