diff --git a/src/app/tabs/compile-tab.js b/src/app/tabs/compile-tab.js index caefef492f..77ac7a4ca3 100644 --- a/src/app/tabs/compile-tab.js +++ b/src/app/tabs/compile-tab.js @@ -61,7 +61,8 @@ module.exports = class CompileTab { selectedVersion: null, baseurl: 'https://solc-bin.ethereum.org/bin' } - self.data.optimize = !!self._components.queryParams.get().optimize + self.data.optimize = self._components.queryParams.get().optimize + self.data.optimize = self.data.optimize === 'true' self._components.queryParams.update({ optimize: self.data.optimize }) self._deps.compiler.setOptimize(self.data.optimize)