js error handled for gas estimation

pull/5370/head
lianahus 4 years ago committed by Liana Husikyan
parent c8a3cafbe1
commit 1d2de4f6c6
  1. 4
      apps/remix-ide/src/app/editor/contextualListener.js

@ -215,8 +215,8 @@ class ContextualListener extends Plugin {
const contract = this.nodes[i]
this.contract = this.results.data.contracts[this.results.source.target][contract.name]
this.estimationObj = this.contract.evm.gasEstimates
this.creationCost = this.estimationObj.creation.totalCost
this.codeDepositCost = this.estimationObj.creation.codeDepositCost
this.creationCost = this.estimationObj === null ? '<not applicable>' : this.estimationObj.creation.totalCost
this.codeDepositCost = this.estimationObj === null ? '<not applicable>' : this.estimationObj.creation.codeDepositCost
}
}
}

Loading…
Cancel
Save