Little fixes

pull/3094/head
ninabreznik 7 years ago
parent 9f7d54395b
commit b6a38c9033
  1. 6
      src/app/editor/contextualListener.js

@ -148,7 +148,7 @@ class ContextualListener {
var fn = fnName + this._getInputParams(node) var fn = fnName + this._getInputParams(node)
if (node.attributes.visibility === 'public') { if (node.attributes.visibility === 'public') {
executionCost = this.estimationObj.external[fn] executionCost = this.estimationObj.external[fn]
} else if (node.attributes.visibility === 'internal') { } else if (node.attributes.visibility === 'private') {
executionCost = this.estimationObj.internal[fn] executionCost = this.estimationObj.internal[fn]
} }
} else { } else {
@ -164,11 +164,9 @@ class ContextualListener {
_getContract (node) { _getContract (node) {
for (var i in this.nodes) { for (var i in this.nodes) {
if (this.nodes[i].id === node.attributes.scope) { if (this.nodes[i].id === node.attributes.scope) {
var contract = this._getGasEstimation(this.nodes[i]) return this._getGasEstimation(this.nodes[i])
break
} }
} }
return contract
} }
_getInputParams (node) { _getInputParams (node) {

Loading…
Cancel
Save