diff --git a/remix-solidity/src/compiler/compiler-input.js b/remix-solidity/src/compiler/compiler-input.js index 6911617861..7e99cd4705 100644 --- a/remix-solidity/src/compiler/compiler-input.js +++ b/remix-solidity/src/compiler/compiler-input.js @@ -7,7 +7,8 @@ module.exports = (sources, opts) => { settings: { optimizer: { enabled: opts.optimize === true || opts.optimize === 1, - runs: 200 + runs: 200, + details: {} }, libraries: opts.libraries, outputSelection: { @@ -24,5 +25,9 @@ module.exports = (sources, opts) => { if (opts.language) { o.language = opts.language } + if (opts.language === 'Yul' && o.settings.optimizer.enabled) + { + o.settings.optimizer.details['yul'] = true + } return JSON.stringify(o) }