Skip to content

Commit

Permalink
Update core/src/types/uint.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Tomas Zemanovic <[email protected]>
  • Loading branch information
batconjurer and tzemanovic authored Jul 10, 2023
1 parent e97db9d commit 0c37aaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/types/uint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0c37aaa

Please sign in to comment.