diff --git a/src/util/amount.rs b/src/util/amount.rs index 8c3be954de..bad78404f0 100644 --- a/src/util/amount.rs +++ b/src/util/amount.rs @@ -433,7 +433,7 @@ impl default::Default for Amount { impl fmt::Debug for Amount { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - write!(f, "Amount({} satoshi)", self.as_sat()) + write!(f, "Amount({:.8} BTC)", self.as_btc()) } } @@ -758,7 +758,7 @@ impl default::Default for SignedAmount { impl fmt::Debug for SignedAmount { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - write!(f, "SignedAmount({} satoshi)", self.as_sat()) + write!(f, "SignedAmount({:.8} BTC)", self.as_btc()) } }