|
|
@ -204,6 +204,10 @@ module.exports = class CompileTab { |
|
|
|
} |
|
|
|
} |
|
|
|
function updateAutoCompile (event) { self._opts.config.set('autoCompile', self._view.autoCompile.checked) } |
|
|
|
function updateAutoCompile (event) { self._opts.config.set('autoCompile', self._view.autoCompile.checked) } |
|
|
|
function compile (event) { self._api.runCompiler() } |
|
|
|
function compile (event) { self._api.runCompiler() } |
|
|
|
|
|
|
|
function hideWarnings (event) { |
|
|
|
|
|
|
|
self._opts.config.set('hideWarnings', self._view.hideWarningsBox.checked) |
|
|
|
|
|
|
|
self._api.runCompiler() |
|
|
|
|
|
|
|
} |
|
|
|
function getContractProperty (property) { |
|
|
|
function getContractProperty (property) { |
|
|
|
const select = self._view.contractNames |
|
|
|
const select = self._view.contractNames |
|
|
|
if (select.children.length > 0 && select.selectedIndex >= 0) { |
|
|
|
if (select.children.length > 0 && select.selectedIndex >= 0) { |
|
|
@ -234,10 +238,6 @@ module.exports = class CompileTab { |
|
|
|
function copyBytecode () { |
|
|
|
function copyBytecode () { |
|
|
|
copyContractProperty('bytecode') |
|
|
|
copyContractProperty('bytecode') |
|
|
|
} |
|
|
|
} |
|
|
|
function hideWarnings (event) { |
|
|
|
|
|
|
|
self._opts.config.set('hideWarnings', self._view.hideWarningsBox.checked) |
|
|
|
|
|
|
|
self._api.runCompiler() |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
function details () { |
|
|
|
function details () { |
|
|
|
const select = self._view.contractNames |
|
|
|
const select = self._view.contractNames |
|
|
|
if (select.children.length > 0 && select.selectedIndex >= 0) { |
|
|
|
if (select.children.length > 0 && select.selectedIndex >= 0) { |
|
|
|