Merge pull request #737 from ethereum/fixDetails

add contract name directly under <option>
pull/1/head
yann300 7 years ago committed by GitHub
commit 5d8507f2a4
  1. 2
      src/app/tabs/compile-tab.js
  2. 2
      test-browser/helpers/contracts.js

@ -323,7 +323,7 @@ function compileTab (container, appAPI, appEvents, opts) {
contractsDetails[name] = parseContracts(name, data.contracts[name], appAPI.currentCompiledSourceCode())
var contractName = yo`
<option>
<div class="${css.name}">${name}</div>
${name}
</option>`
contractNames.appendChild(contractName)
}

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

Loading…
Cancel
Save