morpho-org / metamorpho

MetaMorpho
https://morpho.org
Other
57 stars 26 forks source link

use deployCode in IntegrationTest so solidity version is not fixed #401

Closed adhusson closed 9 months ago

adhusson commented 9 months ago

MetaMorpho uses Solidity 0.8.21 (strictly). The goal is to have 0.8.24 in the public allocator but still be able to reuse Metamorpho's useful test contracts. That means not importing MetaMorpho in IntegrationTest.

This PR adds a MM-deployer function in IntegrationTest. It creates Metamorpho instances using deployCode. As with Blue, importers of MM must now have a MetaMorphoImport.sol file which adds MetaMorpho to the compilation plan.