You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
Seems harmless, right? Well... turns out that on Solidity versions prior to 0.8.6, having enabled set to false, and having it absent entirely, had different results. Having it set to false, as opposed to absent entirely, actually turned on some optimizations (though evidently not much).
This poses a problem when it comes to contract verification; see discussion on this Blockscout issue. Unfortunately I don't think we can just get rid of this default without potentially breaking things. But we can perhaps discard it in fetch-and-compile specifically. However if we do so, we'll have to update the Etherscan fetcher (and possibly the Sourcify fetcher?) per the linked discussion (like, the Etherscan fetcher will have to convert enabled being absent to it being false; the runs: 200 default may also be necessary).
All of this is basically OK for now, but it will need to be solved if we want to do something about #4779.
Environment
Truffle version (truffle version): 5.5.26
The text was updated successfully, but these errors were encountered:
Issue
When Truffle compiles Solidity, it merges the settings from the Truffle Config into some default settings, those default settings being:
Seems harmless, right? Well... turns out that on Solidity versions prior to 0.8.6, having
enabled
set tofalse
, and having it absent entirely, had different results. Having it set tofalse
, as opposed to absent entirely, actually turned on some optimizations (though evidently not much).This poses a problem when it comes to contract verification; see discussion on this Blockscout issue. Unfortunately I don't think we can just get rid of this default without potentially breaking things. But we can perhaps discard it in
fetch-and-compile
specifically. However if we do so, we'll have to update the Etherscan fetcher (and possibly the Sourcify fetcher?) per the linked discussion (like, the Etherscan fetcher will have to convertenabled
being absent to it beingfalse
; theruns: 200
default may also be necessary).All of this is basically OK for now, but it will need to be solved if we want to do something about #4779.
Environment
truffle version
): 5.5.26The text was updated successfully, but these errors were encountered: