Commit 6bdda2a3 authored by yann300's avatar yann300

fix swarm publish

parent 29690661
...@@ -25,7 +25,6 @@ class CompileTab { ...@@ -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 { ...@@ -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 {
......
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