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

Etherscan verifcation not working #146

Open
heueristik opened this issue Jan 28, 2025 · 1 comment
Open

Etherscan verifcation not working #146

heueristik opened this issue Jan 28, 2025 · 1 comment

Comments

@heueristik
Copy link

I tried verifying the EvenNumber.sol contract that I've deployed to sepolia using

➜  risc0-foundry-template git:(main) ✗ forge verify-contract ${EVEN_NUMBER_ADDRESS} --rpc-url https://eth-sepolia.g.alchemy.com/v2/${ALCHEMY_API_KEY:?} --verifier etherscan 
[⠊] Compiling...
No files changed, compilation skipped
Start verifying contract `0x998A5735633afc905d542a97C9C2Dd664394e397` deployed on sepolia

Submitting verification for [contracts/EvenNumber.sol:EvenNumber] 0x998A5735633afc905d542a97C9C2Dd664394e397.
Submitted contract for verification:
        Response: `OK`
        GUID: `kc2hwswvs7wxnznyww6ufes8ni4sgek4zsij5dvtidleaskx1b`
        URL: https://sepolia.etherscan.io/address/0x998a5735633afc905d542a97c9c2dd664394e397
➜  risc0-foundry-template git:(main) ✗ 

but doesn't verify the contract (see https://sepolia.etherscan.io/address/0x998a5735633afc905d542a97c9c2dd664394e397).

This doesn't change if I execute the command from the root instead of the contracts directory.
This problem seems to be caused by ambiguous import paths as per the foundry book

Copy link

linear bot commented Jan 28, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant