Commit 8fc13efe authored by Alex Beregszaszi's avatar Alex Beregszaszi

Consistently display the gas cost (including the 21000 tx fee)

parent 682f8af6
...@@ -413,7 +413,7 @@ UniversalDApp.prototype.getCallButton = function(args) { ...@@ -413,7 +413,7 @@ UniversalDApp.prototype.getCallButton = function(args) {
} else if (self.options.vm){ } else if (self.options.vm){
var outputObj = '0x' + result.vm.return.toString('hex'); var outputObj = '0x' + result.vm.return.toString('hex');
clearOutput($result); clearOutput($result);
$result.append(getReturnOutput(outputObj)).append(getGasUsedOutput(result.vm)); $result.append(getReturnOutput(outputObj)).append(getGasUsedOutput(result));
// Only decode if there supposed to be fields // Only decode if there supposed to be fields
if (args.abi.outputs.length > 0) { if (args.abi.outputs.length > 0) {
......
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