Skip to Content
Mastering Blockchain Programming with Solidity
book

Mastering Blockchain Programming with Solidity

by Jitendra Chittoda
August 2019
Intermediate to advanced
486 pages
13h 52m
English
Packt Publishing
Content preview from Mastering Blockchain Programming with Solidity

Configuring the Solidity compiler 

In the config file, you will find the following settings for the Solidity compiler:

  compilers: {    solc: {      version: "0.5.2",       docker: false,       settings: {         optimizer: {          enabled: true,          runs: 200        },         evmVersion: "byzantium"      }    }  }

Let's look at each setting:

  • solc.version: This takes the Solidity compiler version as a string parameter. You can change the Solidity compiler version according to your project requirements.
  • solc.docker: Truffle supports fetching the Solidity compiler from a Docker image. If you have set this property as true, you must have Docker installed on your machine and already have fetched the solc (the command-line Solidity compiler) Docker image for that version. Truffle does not fetch the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Ethereum

Mastering Ethereum

Andreas M. Antonopoulos, Gavin Wood
Complete Cryptocurrency and Blockchain Course | Learn Solidity

Complete Cryptocurrency and Blockchain Course | Learn Solidity

Ravinder Deol, Codestars By Rob Percival, Thomas Wiesner

Publisher Resources

ISBN: 9781839218262Supplemental Content