foundry: verification broken

Component

Forge

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

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge 0.2.0 (427c1b5 2022-12-05T00:03:54.592506526Z)

What command(s) is the bug in?

forge script

Operating System

Linux

Describe the bug

I’ve been using foundry in the past to verify contracts, but starting today it seems to be broken for whatever i’m trying to do 😅 on multiple repositories.

I tried to deploy the following script via

forge script scripts/PayloadDeployment.s.sol:DeployGoerli --rpc-url ${RPC_GOERLI} --broadcast --legacy --ledger --mnemonic-indexes ${MNEMONIC_INDEX} --sender ${LEDGER_SENDER} --verify --etherscan-api-key ${ETHERSCAN_API_KEY_ETHEREUM} -vvvv --gas-estimate-multiplier 150

Which results in:

##
Start verification for (0) contracts
All (0) contracts were verified!

Which is obviously wrong as there is a contract deployed - which is not verified. So i tried re-verification by adding --resume which results in If you were trying to resume or verify a multi chain deployment, add –multi to your command invocation. … but it’s not a multichain txn, so no idea where this is coming from.

I also tried removing --broadcast as iirc this also worked in the past to enforce verification only, but now results in "/home/sakulstra/Documents/bgd/emission-controller-update/broadcast/PayloadDeployment.s.sol/5/dry-run/run-latest.json": No such file or directory (os error 2)

On a different repo where i use create2, which as well ends up with If you were trying to resume or verify a multi chain deployment, add –multi to your command invocation. - although it’s not a multichain deploy script.


I also tried adding the parameters to toml which i think also worked before:

[rpc_endpoints]
goerli = "${RPC_GOERLI}"
[etherscan]
georli={key="${ETHERSCAN_API_KEY_ETHEREUM}",chainId=5}

and

forge script scripts/PayloadDeployment.s.sol:DeployGoerli --rpc-url goerli --broadcast --legacy --ledger --mnemonic-indexes ${MNEMONIC_INDEX} --sender ${LEDGER_SENDER} --verify  -vvvv --gas-estimate-multiplier 150

which simply results in not even trying to verify now.

When i then try to manually verify via removed --broadcast results in Invalid provider url: goerli

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 18 (6 by maintainers)

Most upvoted comments

None of my verifications are working today either seemed to be working fine yesterday