Skip to content

Commit

Permalink
fix optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
yann300 committed Nov 7, 2018
1 parent d4d8ec2 commit b20c688
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/tabs/compile-tab.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ 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' ? true : false

self._components.queryParams.update({ optimize: self.data.optimize })
self._deps.compiler.setOptimize(self.data.optimize)

Expand Down

0 comments on commit b20c688

Please sign in to comment.