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()) contractsDetails[name] = parseContracts(name, data.contracts[name], appAPI.currentCompiledSourceCode())
var contractName = yo` var contractName = yo`
<option> <option>
<div class="${css.name}">${name}</div> ${name}
</option>` </option>`
contractNames.appendChild(contractName) contractNames.appendChild(contractName)
} }

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

Loading…
Cancel
Save