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

Fix contract verification after deployment #69

Open
kfastov opened this issue Sep 30, 2024 · 6 comments · Fixed by #71
Open

Fix contract verification after deployment #69

kfastov opened this issue Sep 30, 2024 · 6 comments · Fixed by #71
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@kfastov
Copy link
Owner

kfastov commented Sep 30, 2024

Check why forge can't find src/interfaces/ISemaphoreVerifier.sol imported from remappings while verifying the contract and overcome this problem (should be easy if you already familiar with Foundry and Solidity):

% forge verify-contract 0x4f71bB382A119d0545C28FB532Cad673aF321C9F src/LineaWorldID.sol:LineaWorldID --etherscan-api-key <CENSORED> --verifier-url https://api-sepolia.lineascan.build/api --watch
Start verifying contract `0x4f71bB382A119d0545C28FB532Cad673aF321C9F` deployed on sepolia

Submitting verification for [src/LineaWorldID.sol:LineaWorldID] 0x4f71bB382A119d0545C28FB532Cad673aF321C9F.
Submitted contract for verification:
        Response: `OK`
        GUID: `bgjrh92uephaqvbtcsbiwfckrz9dci3gmkbgfdqyznm9zdk41h`
        URL: https://sepolia.etherscan.io/address/0x4f71bb382a119d0545c28fb532cad673af321c9f
Contract verification status:
Response: `NOTOK`
Details: `Pending in queue`
Contract verification status:
Response: `NOTOK`
Details: `Fail - Unable to verify. Solidity Compilation Error: Source "src/interfaces/ISemaphoreVerifier.sol" not found: File not found. Searched the following locations: "".`
Error: 
Checking verification result failed

Context:
- Contract failed to verify.

Possibly related Foundry issues:
foundry-rs/foundry#4587
foundry-rs/foundry#4060

@kfastov kfastov added bug Something isn't working help wanted Extra attention is needed labels Sep 30, 2024
@ikemHood
Copy link

Hi @kfastov can I get this done

@od-hunter
Copy link
Contributor

Hi @kfastov , can I quickly work on this please?

@ShantelPeters
Copy link

Hello @kfastov please let me work on this

@Iwueseiter
Copy link
Contributor

Hi @kfastov can I fix this?

@DevPelz
Copy link
Contributor

DevPelz commented Sep 30, 2024

Hello @kfastov can I have a go at this. It seems there is a command that is required in the foundry.toml file to fix this or maybe an update to the foundry version used for deployment.

@Jemiiah
Copy link
Contributor

Jemiiah commented Sep 30, 2024

@kfastov kindly assign i'll work on this issue

@kfastov kfastov linked a pull request Oct 14, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants