Commit d6291669 authored by yann300's avatar yann300 Committed by Aniket

fix looking up function/constructor

parent 9ad7ba32
......@@ -190,7 +190,7 @@ class ContextualListener extends Plugin {
let executionCost, codeDepositCost
if (node.nodeType === 'FunctionDefinition') {
const visibility = node.visibility
if (!node.kind === 'constructor') {
if (node.kind !== 'constructor') {
const fnName = node.name
const fn = fnName + this._getInputParams(node)
if (visibility === 'public' || visibility === 'external') {
......
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