You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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):Possibly related Foundry issues:
foundry-rs/foundry#4587
foundry-rs/foundry#4060
The text was updated successfully, but these errors were encountered: