forge flatten
with renamed interface import does not compile
#3265
Labels
forge flatten
with renamed interface import does not compile
#3265
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (084ef3d 2022-09-19T00:04:35.98318Z)
What command(s) is the bug in?
forge flatten
Operating System
macOS (Apple Silicon)
Describe the bug
If I have a contract using a named import of an interface, such as
forge flatten
on that file results in output that includes the IERC20 interface, and the contract using the named import. Since the contract uses the named importMyIERC20
, and the flattened file includesinterface IERC20
but notinterface MyIERC20
,forge build
fails withDeclarationError: Identifier not found or not unique.
This seems related to #1440
The text was updated successfully, but these errors were encountered: