Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
Update ethers-core/src/utils/mod.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
  • Loading branch information
izayl and mattsse authored Apr 22, 2023
1 parent f5a2d15 commit 74bcc82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ethers-core/src/utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ pub fn verify_checksum(addr: &str, chain_id: Option<u8>) -> bool {
}

// addr is checksummed address
if addr.chars().any(|c| c.is_uppercase()) {
if addr.chars().any(|c| c.is_ascii_uppercase()) {
let checksum_addr = to_checksum(&address.unwrap(), chain_id);

return checksum_addr.strip_prefix("0x").unwrap_or(&checksum_addr) == addr
Expand Down

0 comments on commit 74bcc82

Please sign in to comment.