Closed Zodomo closed 5 days ago
Hey @Zodomo! I think I have seen this error before, it had to do with a forge
bug that was fixed some time ago.
Could you run foundryup
to update your forge
? I think everything should work afterwards
@janjakubnanista I ran pnpm i
and foundryup
. I still see errors such as these when running forge build
, regardless of if on node v20 or v21:
@janjakubnanista upon further investigation, it seems the path devtools/packages/oapp-evm/node_modules/@layerzerolabs/toolbox-foundry/lib/solidity-bytes-utils/BytesLib.sol
doesnt exist, or might be incorrect. Do I need to be doing anything other than running pnpm i
in the oapp-evm package to get forge build
working? Seems the dependencies might have flaws.
@Zodomo hey there! Yeah what you need is the submodules included with this repo. In the DEVELOPMENT.md there are steps to get them in
I see, thanks for pointing me in the right direction! Following the process in the DEVELOPMENT.md
file, I found that I was able to run forge build
in the oapp-evm
package after these steps:
git clone --recurse-submodules https://github.com/Zodomo/devtools.git
(my fork)nvm install 18.16.0
nvm use 18.16.10
corepack enable
pnpm install
pnpm build
Describe the bug I cannot run
forge build
in the oapp-evm package. I want to build it because I'm trying to fork it to remove OpenZeppelin's Ownable library, as I use Solady's Ownable instead. I am aware of the security considerations I need to manage in doing so.When building, I see the following console output:
To Reproduce Steps to reproduce the behavior:
cd devtools
pnpm install
in root directorycd packages/oapp-evm
)pnpm install
in package's root dirforge build
orforge build --hardhat
Expected behavior Forge should build the contracts.
Screenshots
Environment (please complete the following information):
Additional context These problems occur before any modifications are made to the package.