-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Description
> Hey folks, Aleksandar from Tenderly here π
We are looking into the issue with Superform team (their verifications are failing on our platform using foundry). They asked us to paste our findings here in case they are helpful:
We are getting compilation errors. Namely, the compiler is unable to find imports for
DataTypes.solandError.sol. Looking at the compiler input, I can see that these are defined on pathlib/superform-core/src/libraries/*.Now, looking at
DataTypes.solimport inside of theSuperVault.solfile it is being imported from pathsuperform-core/src/types/DataTypes.sol. Given the remapping ofsuperform-core/=lib/superform-core/, the path where the compiler expects the file islib/superform-core/src/types/DataTypes.sol. And it cannot find it there, because it is on a similar (but not identical) path:lib/superform-core/src/libraries/DataTypes.solHope some of this info helps.
Ok, I got confused with similar paths, and imagined an error where there is none. The error actually happens when attempting to import DataTypes.sol in the IBaseForm.sol file. The import path specified is absolute src/types/DataTypes.sol. As there are no remappings for this path in the compilation request, this cannot be resolved. This also happens when trying to import the DataTypes.sol in file IBaseRouter.sol as well as when trying to import Error.solin file DataLib.sol.
From our perspective, this should be fixed by either:
- Adding relevant remappings
- Using relative import paths in the solidity code
And I apologise for causing confusion with my initial message π
Originally posted by @strahor-13 in #9483 (comment)
Metadata
Metadata
Assignees
Labels
Type
Projects
Status