From 0c37aaace6b98aecb1f9363bac5b5a5108467588 Mon Sep 17 00:00:00 2001 From: Jacob Turner Date: Mon, 10 Jul 2023 10:12:16 +0200 Subject: [PATCH] Update core/src/types/uint.rs Co-authored-by: Tomas Zemanovic --- core/src/types/uint.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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