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

Updating configuration

In the truffle-config.js file, you will find the compilers' settings. You will need to uncomment the required parameters for this setting. As we are going to use Solidity compiler version ^0.5.0, we have updated the configuration accordingly. We also want our deployed contracts to be optimized, hence, we have enabled that flag. The following is the configuration for compilers in the truffle-config.js file:

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

Also, uncomment the development network configuration in the truffle-config.js file. After this configuration setup, you are ready to write your contract in the contracts folder ...

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