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
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
The text was updated successfully, but these errors were encountered:
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):
The text was updated successfully, but these errors were encountered: