Commit 4b454c18 authored by lianahus's avatar lianahus Committed by Liana Husikyan

js error handled for gas estimation

parent f47657db
......@@ -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
}
}
}
......
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