Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blockscout verification does not work #4406

Closed
2 tasks done
ChiTimesChi opened this issue Feb 21, 2023 · 3 comments
Closed
2 tasks done

Blockscout verification does not work #4406

ChiTimesChi opened this issue Feb 21, 2023 · 3 comments
Assignees
Labels
T-bug Type: bug

Comments

@ChiTimesChi
Copy link
Contributor

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 (b44b045 2023-02-21T00:11:41.592203605Z)

What command(s) is the bug in?

forge verify-contract

Operating System

Linux

Describe the bug

It is not possible to verify contracts on any of the blockscout explorers right now.

Steps to reproduce:

  1. Clone the one and only Multicall repo: https://github.com/mds1/multicall
  2. forge build
  3. forge v --verifier blockscout --verifier-url https://blockscout.com/eth/mainnet/api 0xcA11bde05977b3631167028862bE2a173976CA11 Multicall3 fails with
Submitting verification for [src/Multicall3.sol:Multicall3] "0xcA11bde05977b3631167028862bE2a173976CA11".
2023-02-21T19:58:25.991351Z ERROR etherscan: Failed to deserialize response: data did not match any variant of untagged enum ResponseData res="{\"message\":\"Something went wrong.\",\"result\":null,\"status\":\"0\"}"
  1. forge v --verifier blockscout --verifier-url https://blockscout.com/eth/mainnet/api --compiler-version 0.8.12 --num-of-optimizations 10000000 0xcA11bde05977b3631167028862bE2a173976CA11 Multicall3 yeilds the very same error message above.
@sakulstra
Copy link
Contributor

I think slightly related - i tried to verify on metis blockscout via

forge script scripts/Myscript.s.sol:Deploy --rpc-url metis --broadcast --ledger --legacy --mnemonic-indexes ${MNEMONIC_INDEX} --sender ${LEDGER_SENDER} --verify -vvvv

While this does not error it also doesn't do any verification.

The blockscout api for verification is compatible with etherscan afaik - only difference is that you don't need an api key, so i guess it should work.

@Evalir
Copy link
Member

Evalir commented Jun 16, 2023

Closing—duplicate of an existing newer verification issue and we've also merged a few improvements to blockscout verification which should have unblocked this.

@Evalir Evalir closed this as completed Jun 16, 2023
@github-project-automation github-project-automation bot moved this from Todo to Done in Foundry Jun 16, 2023
@abhi3700
Copy link

abhi3700 commented Nov 9, 2023

The full command for deploying on explorers (other than etherscan) is:

$ forge script script/Load.s.sol:LoadScript --rpc-url $RPC_URL --private-key $DEPLOYER_PRIVATE_KEY --broadcast --verify --verifier blockscout --verifier-url $VERIFIER_URL

Please add /api? to the end of explorer url like this: "https://nova.subspace.network/api?". This is without any api key. Here, the block explorer is: "https://nova.subspace.network/".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-bug Type: bug
Projects
Archived in project
Development

No branches or pull requests

5 participants