Merge pull request #722 from ethereum/fixAutoCompile

Fix autocompile
pull/1/head
yann300 7 years ago committed by GitHub
commit 1ea66f16c9
  1. 8
      src/app/tabs/compile-tab.js
  2. 4
      test-browser/helpers/contracts.js

@ -183,12 +183,12 @@ function compileTab (container, appAPI, appEvents, opts) {
// ----------------- autoCompile -----------------
var autoCompileInput = compileContainer.querySelector('#autoCompile')
var autoCompile = true
if (appAPI.config.exists('autoCompile')) {
var autoCompile = appAPI.config.get('autoCompile')
if (autoCompile) {
autoCompileInput.setAttribute('checked', autoCompile)
}
autoCompile = appAPI.config.get('autoCompile')
}
appAPI.config.set('autoCompile', autoCompile)
autoCompileInput.setAttribute('checked', autoCompile)
autoCompileInput.addEventListener('change', function () {
appAPI.config.set('autoCompile', autoCompileInput.checked)

@ -12,8 +12,8 @@ function checkCompiledContracts (browser, compiled, callback) {
return null
} else {
var ret = []
for (var c in contracts) {
ret.push(contracts[c].innerText)
for (var c = 0; c < contracts.length; c++) {
ret.push(contracts[c].querySelector('div').innerHTML)
}
return ret
}

Loading…
Cancel
Save