foundry-rs / foundry

Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.
https://getfoundry.sh
Apache License 2.0
8.19k stars 1.7k forks source link

Importing Layerzero Smart contracts #9019

Open 0xtomoon opened 1 day ago

0xtomoon commented 1 day ago

Component

Forge

Have you ensured that all of these are up to date?

What version of Foundry are you on?

forge 0.2.0

What command(s) is the bug in?

forge test -vvv

Operating System

macOS (Intel)

Describe the bug

I use openzeppelin library with version 5.0.2, but when I import @layerzerolabs/lz-evm-messagelib-v2 it uses version 4.8.1 inside

How can I handle remapping in this case?

mattsse commented 1 day ago

can you take a look at your remappings forge re

this is likely a problem with autodetection, you can disable that with auto_detect_remappings = false