Truffle Solc Select
This plugin can be used to compile smart contracts that require multiple solidity compiler versions. It does this by installing various versions on install and automatically selects the right version based on the smart contract pragma version.
Note: This feature is new and still in a super experimental state. Not ready for production!!!!
Plugin installation / usage
-
Install the plugin from NPM.
npm install --save-dev truffle-solc-select
-
Add a
plugins
section to your Truffle config.module.exports = { /* ... rest of truffle-config */ plugins: [ "truffle-solc-select" ] }
-
Run the command
$ truffle run multicompile