Merge pull request #47 from ethereum/patch/fix-gas-costs

Consistently display the gas cost (including the 21000 tx fee)
pull/1/head
chriseth 9 years ago
commit a16b50a58b
  1. 2
      src/universal-dapp.js

@ -414,7 +414,7 @@ UniversalDApp.prototype.getCallButton = function(args) {
} else if (self.options.vm){
var outputObj = '0x' + result.vm.return.toString('hex');
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
if (args.abi.outputs.length > 0) {

Loading…
Cancel
Save