trufflesuite / truffle-compile

Compiler helper and artifact manager
22 stars 46 forks source link

turned off optimiser by default #5

Closed Bunjin closed 6 years ago

Bunjin commented 7 years ago

The optimiser of solc compiler has been the source of several rather serious bugs: e.g. https://www.reddit.com/r/ethereum/comments/5fvpjq/psa_beware_of_buggy_solidity_version/

Given the current experimental nature of Ethereum, I'd advise for turning of the optimiser by default, or at least to implement a way to config it in truffle.js

This PR turns off the optimiser by default.

gnidan commented 6 years ago

Hi @Bunjin, thanks for submitting this PR and bringing it to our attention! There were a bunch of other required changes in this, so the optimizer was disabled in another effort. Closing this now.