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.sol
andError.sol
. Looking at the compiler input, I can see that these are defined on pathlib/superform-core/src/libraries/*
.Now, looking at
DataTypes.sol
import inside of theSuperVault.sol
file 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.sol
Hope 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.sol
in 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
Type
Projects
Status