|
|
|
@ -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>` |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|