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
While running forge create I receive an error saying I have duplicate contract names. While that is true I have them in two separate, distinctly named files - ModifiedTokenDistro.sol and TokenDistro.sol.
Error:
If cache is disabled, compiler version must be either provided with `--compiler-version` option or set in foundry.toml
Context:
- contract with duplicate name `TokenDistro`. please pass the path instead
However I did specify the relative path to the contract file and the contract name - so why does it think there is a duplicate contract if I did explicitly specify the file path?
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (2cf84d9 2024-02-07T00:16:06.769732275Z)
What command(s) is the bug in?
forge create
Operating System
Linux
Describe the bug
While running forge create I receive an error saying I have duplicate contract names. While that is true I have them in two separate, distinctly named files -
ModifiedTokenDistro.sol
andTokenDistro.sol
.When I run this command:
I get this error:
However I did specify the relative path to the contract file and the contract name - so why does it think there is a duplicate contract if I did explicitly specify the file path?
here is a public URL to the contract in question
https://github.com/Giveth/giveconomy-foundry/blob/modify-allocation-functions/contracts/ModifiedTokenDistro.sol
The text was updated successfully, but these errors were encountered: