Skip to content

fix: make HEX_CHARS_RE case-insensitive for ETH address validation#173

Open
fazalpsinfo-cmyk wants to merge 1 commit into
blockcypher:masterfrom
fazalpsinfo-cmyk:master
Open

fix: make HEX_CHARS_RE case-insensitive for ETH address validation#173
fazalpsinfo-cmyk wants to merge 1 commit into
blockcypher:masterfrom
fazalpsinfo-cmyk:master

Conversation

@fazalpsinfo-cmyk

Copy link
Copy Markdown

Fixes #163

is_valid_eth_address calls uses_only_hash_chars which uses a case-sensitive hex regex. Ethereum addresses like 0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed fail validation because of mixed case.

Fix: add re.IGNORECASE to HEX_CHARS_RE.

If you find this useful, consider supporting my work: https://buymeacoffee.com/muhamedfazalps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

is_valid_address_for_coinsymbol fails for Ethereum addresses with uppercase characters

1 participant