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
If there are multiple .sol files with the same name, but in different paths/dependencies, forge build creates the same .json output file for both, hence overwriting one output with another one. A concrete example of this happening is GearBox V3, where they have multiple imports of SafeERC20.sol, once from @1inch/solidity-utils/contracts/libraries/SafeERC201.sol and once from @openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol. The output .json is created only for one of them.
The text was updated successfully, but these errors were encountered:
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (2f4b5db 2024-02-21T00:17:48.983570637Z)
What command(s) is the bug in?
forge build
Operating System
Linux
Describe the bug
If there are multiple
.sol
files with the same name, but in different paths/dependencies,forge build
creates the same.json
output file for both, hence overwriting one output with another one. A concrete example of this happening is GearBox V3, where they have multiple imports ofSafeERC20.sol
, once from@1inch/solidity-utils/contracts/libraries/SafeERC201.sol
and once from@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol
. The output.json
is created only for one of them.The text was updated successfully, but these errors were encountered: