Browse Source

cashierdb: fix bug when truncate the received amount

ghassmo 4 năm trước cách đây
mục cha
commit
d9fba03797
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/bin/cashierd.rs

+ 1 - 1
src/bin/cashierd.rs

@@ -575,7 +575,7 @@ impl Cashierd {
                     // truncate received_balance to 8 digits
                     let received_balance = token_notification.received_balance;
                     let mut rv: Vec<char> = received_balance.to_string().chars().collect();
-                    rv.truncate(8);
+                    rv.truncate(9);
                     let received_balance = u64::from_str(&String::from_iter(rv))?;
 
                     client