Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yann300 committed Aug 22, 2019
1 parent 920660f commit 93ca4d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/tabs/runTab/contractDropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ContractDropdownUI {
if (success) {
this.selectContractNames.removeAttribute('disabled')
this.dropdownLogic.getCompiledContracts(compiler, compilerFullName).forEach((contract) => {
contractNames.appendChild(yo`<option compiler="${compilerFullName}">${contract.name} - ${file}</option>`)
contractNames.appendChild(yo`<option value="${contract.name}" compiler="${compilerFullName}">${contract.name} - ${file}</option>`)
})
} else {
this.selectContractNames.setAttribute('disabled', true)
Expand Down Expand Up @@ -124,7 +124,7 @@ class ContractDropdownUI {

getSelectedContract () {
var contract = this.selectContractNames.children[this.selectContractNames.selectedIndex]
var contractName = contract.innerHTML
var contractName = contract.getAttribute('value')
var compilerAtributeName = contract.getAttribute('compiler')

return this.dropdownLogic.getSelectedContract(contractName, compilerAtributeName)
Expand Down

0 comments on commit 93ca4d6

Please sign in to comment.