fix looking up function/constructor

pull/434/head
yann300 4 years ago committed by Aniket
parent 9ad7ba3265
commit d62916695e
  1. 2
      apps/remix-ide/src/app/editor/contextualListener.js

@ -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') {

Loading…
Cancel
Save