Contract verification fails with dependency "File not found" in pnpm monorepo #6653
Closed
2 tasks done
Labels
T-bug
Type: bug
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (1978a03 2023-12-21T09:54:24.034180000Z)
What command(s) is the bug in?
forge script
Operating System
macOS (Apple Silicon)
Describe the bug
The error details suggest that a source file from OpenZeppelin's contracts is not found.
Steps to Reproduce
Run the following command in this branch:
collectivexyz/revolution-protocol#39
Observe the error output.
Expected Behavior
Successful verification of the contract.
Actual Behavior
Error during contract verification with the following message:
Tried solutions
allow_paths = ["../../node_modules", "node_modules"]
inpackages/protocol-rewards/foundry.toml
doesn't resolve the issue. It is just not finding the file.The text was updated successfully, but these errors were encountered: