From 328999ba89ba23bed82a90fa6290035c5a3585b1 Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 7 Nov 2018 13:50:03 +0100 Subject: [PATCH] fix optimize --- src/app/tabs/compile-tab.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)