fix swarm publish

pull/1/head
yann300 6 years ago
parent 29690661fe
commit 6bdda2a34d
  1. 6
      src/app/tabs/compile-tab.js

@ -25,7 +25,6 @@ class CompileTab {
el: null, el: null,
warnCompilationSlow: null, warnCompilationSlow: null,
errorContainer: null, errorContainer: null,
contractNames: null,
contractEl: null contractEl: null
} }
this.queryParams = new QueryParams() this.queryParams = new QueryParams()
@ -216,9 +215,8 @@ class CompileTab {
} }
publish () { publish () {
const selectContractNames = this._view.contractNames let contract = this.data.contractsDetails[this.selectedContract]
if (selectContractNames.children.length > 0 && selectContractNames.selectedIndex >= 0) { if (contract) {
var contract = this.data.contractsDetails[selectContractNames.children[selectContractNames.selectedIndex].innerHTML]
if (contract.metadata === undefined || contract.metadata.length === 0) { if (contract.metadata === undefined || contract.metadata.length === 0) {
modalDialogCustom.alert('This contract may be abstract, may not implement an abstract parent\'s methods completely or not invoke an inherited contract\'s constructor correctly.') modalDialogCustom.alert('This contract may be abstract, may not implement an abstract parent\'s methods completely or not invoke an inherited contract\'s constructor correctly.')
} else { } else {

Loading…
Cancel
Save