Merge pull request #1625 from ethereum/yann300-patch-8

Update run-tab.js
pull/3094/head
yann300 6 years ago committed by GitHub
commit 10c7e1c670
  1. 2
      src/app/tabs/compile-tab.js
  2. 2
      src/app/tabs/run-tab.js

@ -371,7 +371,7 @@ module.exports = class CompileTab {
if (selectContractNames.children.length > 0 && selectContractNames.selectedIndex >= 0) {
var contract = self.data.contractsDetails[selectContractNames.children[selectContractNames.selectedIndex].innerHTML]
if (contract.metadata === undefined || contract.metadata.length === 0) {
modalDialogCustom.alert('This contract does not implement all functions and thus cannot be published.')
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 {
publishOnSwarm(contract, self._deps.fileManager, function (err, uploaded) {
if (err) {

@ -435,7 +435,7 @@ function contractDropdown (events, self) {
var selectedContract = getSelectedContract()
if (selectedContract.contract.object.evm.bytecode.object.length === 0) {
modalDialogCustom.alert('This contract does not implement all functions and thus cannot be created.')
modalDialogCustom.alert('This contract may be abstract, not implement an abstract parent\'s methods completely or not invoke an inherited contract\'s constructor correctly.')
return
}

Loading…
Cancel
Save