Truncate trailing zeroes in coin amounts (#1366)

* truncate coin amounts
* truncate datetimes
* fixed formatting
This commit is contained in:
Mike Dallas
2018-08-17 18:05:35 +01:00
committed by Ignotus Peverell
parent f7161a9afb
commit adeaea4622
5 changed files with 39 additions and 24 deletions
+2 -2
View File
@@ -276,8 +276,8 @@ impl Slate {
if fee > self.amount + self.fee {
let reason = format!(
"Rejected the transfer because transaction fee ({}) exceeds received amount ({}).",
amount_to_hr_string(fee),
amount_to_hr_string(self.amount + self.fee)
amount_to_hr_string(fee, false),
amount_to_hr_string(self.amount + self.fee, false)
);
info!(LOGGER, "{}", reason);
return Err(ErrorKind::Fee(reason.to_string()))?;