diff --git a/core/src/types/uint.rs b/core/src/types/uint.rs index 3e2ea7e1022..51f3fece09d 100644 --- a/core/src/types/uint.rs +++ b/core/src/types/uint.rs @@ -49,7 +49,7 @@ impl<'de> serde::Deserialize<'de> for Uint { let digits = amount_string .chars() .filter_map(|c| { - if c.is_numeric() { + if c.is_digit(10) { c.to_digit(10).map(Uint::from) } else { None