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

bug: cannot compile TestHelperOz5 with foundry #1086

Open
KevinYum opened this issue Nov 27, 2024 · 0 comments
Open

bug: cannot compile TestHelperOz5 with foundry #1086

KevinYum opened this issue Nov 27, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@KevinYum
Copy link

Describe the bug
I'm developing using foundry and install devtool using
forge install LayerZero-Labs/devtools
and adding to remapping
@layerzerolabs/test-devtools-evm-foundry/=lib/devtools/packages/test-devtools-evm-foundry

When I try to write test case using TestHelperOz5, it fails to build with following error msg:

forge build --via-ir --out abi --names --sizes

[⠢] Compiling...
[⠆] Unable to resolve imports:
"@layerzerolabs/lz-evm-v1-0.7/contracts/interfaces/ILayerZeroUltraLightNodeV2.sol" in "/Users/brok/workspace/meex-contracts/lib/devtools/packages/test-devtools-evm-foundry/contracts/mocks/DVNMock.sol"
with remappings:
@openzeppelin/=/Users/brok/workspace/meex-contracts/lib/openzeppelin-contracts/
@openzeppelin-upgradeable/=/Users/brok/workspace/meex-contracts/lib/openzeppelin-contracts-upgradeable/
@prb/test/=/Users/brok/workspace/meex-contracts/lib/prb-test/src/
forge-std/=/Users/brok/workspace/meex-contracts/lib/forge-std/src/
src/=/Users/brok/workspace/meex-contracts/src/
@layerzerolabs/oapp-evm/=/Users/brok/workspace/meex-contracts/lib/devtools/packages/oapp-evm/
@layerzerolabs/test-devtools-evm-foundry/=/Users/brok/workspace/meex-contracts/lib/devtools/packages/test-devtools-evm-foundry/
@layerzerolabs/lz-evm-protocol-v2/=/Users/brok/workspace/meex-contracts/lib/layerzero-v2/packages/layerzero-v2/evm/protocol/
@layerzerolabs/lz-evm-messagelib-v2/=/Users/brok/workspace/meex-contracts/lib/layerzero-v2/packages/layerzero-v2/evm/messagelib/
solidity-bytes-utils/=/Users/brok/workspace/meex-contracts/lib/solidity-bytes-utils/
@openzeppelin/contracts-upgradeable/=/Users/brok/workspace/meex-contracts/lib/openzeppelin-contracts-upgradeable/contracts/
@openzeppelin/contracts/=/Users/brok/workspace/meex-contracts/lib/openzeppelin-contracts/contracts/
ds-test/=/Users/brok/workspace/meex-contracts/lib/forge-std/lib/ds-test/src/
erc4626-tests/=/Users/brok/workspace/meex-contracts/lib/openzeppelin-contracts-upgradeable/lib/erc4626-tests/
layerzero-v2/=/Users/brok/workspace/meex-contracts/lib/layerzero-v2/
openzeppelin-contracts-upgradeable/=/Users/brok/workspace/meex-contracts/lib/openzeppelin-contracts-upgradeable/
openzeppelin-contracts/=/Users/brok/workspace/meex-contracts/lib/openzeppelin-contracts/
prb-test/=/Users/brok/workspace/meex-contracts/lib/prb-test/src/
solmate/=/Users/brok/workspace/meex-contracts/lib/solmate/src/
[⠔] Compiling 164 files with Solc 0.8.22
[⠒] Solc 0.8.22 finished in 160.98ms
Error:
Compiler run failed:
Error (6275): Source "@layerzerolabs/lz-evm-v1-0.7/contracts/interfaces/ILayerZeroUltraLightNodeV2.sol" not found: File not found. Searched the following locations: "/Users/brok/workspace/meex-contracts".
ParserError: Source "@layerzerolabs/lz-evm-v1-0.7/contracts/interfaces/ILayerZeroUltraLightNodeV2.sol" not found: File not found. Searched the following locations: "/Users/brok/workspace/meex-contracts".
--> lib/devtools/packages/test-devtools-evm-foundry/contracts/mocks/DVNMock.sol:5:1:
|
5 | import { ILayerZeroUltraLightNodeV2 } from "@layerzerolabs/lz-evm-v1-0.7/contracts/interfaces/ILayerZeroUltraLightNodeV2.sol";
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

 ELIFECYCLE  Command failed with exit code 1.

Environment (please complete the following information):

  • OS: macos
  • SOLC Version: 0.8.22
@KevinYum KevinYum added the bug Something isn't working label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant