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
feat: Soften duplicate contract name in the case contracts have identical ABIs
Foundry seems to duplicate some imported sub-files within a contract,
for example:
`<foundry root>/src/parts/primitives/Foo.sol`
Is defined only once, and imported from `<foundry root>/src/Bar.sol`
But ends up appearing twice in artifacts directory:
```
<foundry root>/out/Foo.sol/Foo.json
<foundry root>/out/primitives/Foo.sol/Foo.json
```
In this case `getArtifactPaths()` in the Foundry plugin pick up the same
contracts twice since they end up existing in multiple subdirectories of `out/`. I
don't think there is a reliable to heuristic to de-duplicate them at
this level.
It seems like duck-typing contracts by the ABI should be fine and may
help other plugin sources. it could always be disabled by default and enabled via an option at the cost of yet more config
Signed-off-by: Silas Davis <[email protected]>
0 commit comments