Add if (node.name === FunctionDefinition)

pull/1/head
ninabreznik 7 years ago
parent 612cf1debb
commit bdbc21ac84
  1. 3
      src/app/editor/contextView.js

@ -172,6 +172,7 @@ class ContextView {
</div>`
function showGasEstimation () {
if (node.name === 'FunctionDefinition') {
var result = self._api.contextualListener.gasEstimation(node)
var executionCost = 'Execution cost: ' + result.executionCost + ' gas'
var codeDepositCost = 'Code deposit cost: ' + result.codeDepositCost + ' gas'
@ -181,7 +182,7 @@ class ContextView {
${estimatedGas}
</div>`
}
}
}
}

Loading…
Cancel
Save