Commit 93ca4d65 authored by yann300's avatar yann300

fix tests

parent 920660f3
...@@ -24,7 +24,7 @@ class ContractDropdownUI { ...@@ -24,7 +24,7 @@ class ContractDropdownUI {
if (success) { if (success) {
this.selectContractNames.removeAttribute('disabled') this.selectContractNames.removeAttribute('disabled')
this.dropdownLogic.getCompiledContracts(compiler, compilerFullName).forEach((contract) => { 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 { } else {
this.selectContractNames.setAttribute('disabled', true) this.selectContractNames.setAttribute('disabled', true)
...@@ -124,7 +124,7 @@ class ContractDropdownUI { ...@@ -124,7 +124,7 @@ class ContractDropdownUI {
getSelectedContract () { getSelectedContract () {
var contract = this.selectContractNames.children[this.selectContractNames.selectedIndex] var contract = this.selectContractNames.children[this.selectContractNames.selectedIndex]
var contractName = contract.innerHTML var contractName = contract.getAttribute('value')
var compilerAtributeName = contract.getAttribute('compiler') var compilerAtributeName = contract.getAttribute('compiler')
return this.dropdownLogic.getSelectedContract(contractName, compilerAtributeName) return this.dropdownLogic.getSelectedContract(contractName, compilerAtributeName)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment