lidofinance / core

Lido DAO smart contracts
https://lido.fi
GNU General Public License v3.0
382 stars 194 forks source link

Incompatible Solidity Version and Unresolved Import Issues with lido-dao Contract #810

Closed 0xy0ung closed 1 year ago

0xy0ung commented 1 year ago

I am working on a project that uses foundry and I have using forge install imported the Lido contract from lido-dao to execute submit function. However, when I use forge compile, I encounter two issues:

A 'Discovered incompatible solidity versions' error message is displayed which seems to be related to solc version 0.4.24 and 0.8.9. An 'Unable to resolve imports' error occurs specifically for '@aragon/os/contracts/common/UnstructuredStorage.sol' in 'StETHPermit.sol' Could you please provide some guidance on how to resolve these issues? Thank you in advance for your help.

0xy0ung commented 1 year ago

The repo uses hardhat, not foundry