kfastov / worldcoin-bridge-linea

World ID state bridge for Linea
MIT License
6 stars 24 forks source link

Fix contract verification after deployment #69

Open kfastov opened 1 month ago

kfastov commented 1 month ago

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: https://github.com/foundry-rs/foundry/issues/4587 https://github.com/foundry-rs/foundry/issues/4060

ikemHood commented 1 month ago

Hi @kfastov can I get this done

od-hunter commented 1 month ago

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

ShantelPeters commented 1 month ago

Hello @kfastov please let me work on this

Iwueseiter commented 1 month ago

Hi @kfastov can I fix this?

DevPelz commented 1 month ago

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 commented 1 month ago

@kfastov kindly assign i'll work on this issue