diff options
-rw-r--r-- | ethereal/ui/debugger.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ethereal/ui/debugger.go b/ethereal/ui/debugger.go index eb68b51dc..a4489cdf4 100644 --- a/ethereal/ui/debugger.go +++ b/ethereal/ui/debugger.go @@ -117,7 +117,8 @@ func (self *DebuggerWindow) Debug(valueStr, gasStr, gasPriceStr, scriptStr, data self.Logf("callsize %d", len(script)) go func() { ret, g, err := callerClosure.Call(vm, data, self.Db.halting) - self.Logln("gas usage", g, "total price =", new(big.Int).Mul(g, gasPrice)) + tot := new(big.Int).Mul(g, gasPrice) + self.Logf("gas usage %v total price = %v (%v)", g, tot, ethutil.CurrencyToString(tot)) if err != nil { self.Logln("exited with errors:", err) } else { |