SuperblocksHQ / ethereum-studio

Official Ethereum Studio project repository. And IDE specially tailored to make it as simple as possible to onboard new users into the Ethereum ecosystem
https://ethereum.org/build/
GNU General Public License v3.0
186 stars 103 forks source link

Add ability to configure the Solidity compiler #245

Open samajammin opened 4 years ago

samajammin commented 4 years ago

Summary

Solidity versions get updated regularly yet currently we have a static version hardcoded in the application (0.5.10) & all templates use that version. Attempting to change the version in a project (e.g. 0.6.8) throws an error in the IDE's console:

Using Solidity compiler version 0.5.10
/contracts/Coin.sol:3:1: ParserError: Source file requires different compiler version (current compiler is 0.5.10+commit.5a6ea5b1.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity 0.6.8;
^--------------------^
[ERROR] Ate bad code and died, compilation aborted.

Motivation

Describe alternatives you've considered

Additional context

Outstanding questions