Source verification fails when importing multiple objects from the same file, e.g.:
import {
ILayerZeroEndpointV2,
Origin,
MessagingReceipt,
MessagingParams
} from "@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroEndpointV2.sol";
When attempting to verify I get the following error:
Verification complete. Result: Fail - Unable to verify. Solidity Compilation Error: Source "@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroEndpointV2.sol" not found: File not found. Searched the following locations: "".
How can it be fixed?
When I modify the import statement so that it only imports a single object, or imports the entire file, verification is successful. I believe that the verification logic must not consider the possibility for multiple objects in a single statement, and so it misses further dependencies created by the import.
Environment information
brownie
Version: 1.20.5solc
Version: 0.8.25What was wrong?
Source verification fails when importing multiple objects from the same file, e.g.:
When attempting to verify I get the following error:
How can it be fixed?
When I modify the import statement so that it only imports a single object, or imports the entire file, verification is successful. I believe that the verification logic must not consider the possibility for multiple objects in a single statement, and so it misses further dependencies created by the import.