Commit 8917c13d authored by ninabreznik's avatar ninabreznik

Little fixes

parent ccdd9412
...@@ -148,7 +148,7 @@ class ContextualListener { ...@@ -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 { ...@@ -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) {
......
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