You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[utils] isHexChecksumAddress is poorly named and documented #10207
This function does NOT return if the given string is a "valid hex checksum address" (or a "Hex Checksum Address"). It returns true if the characters used in the given string are all allowed in an checksummed address.
The function (and likely some other similarly confusing functions/docs in this same file) should be updated to reflect their purpose.
@davidmurdoch I agree, this is a confusing function. Not only does it not tell you whether you have a truly valid checksum address, we're running a string against a pattern ostensibly so we can reliably convert it into a more useful type — except all we can tell TypeScript is that it's a string that starts with 0x, which is better than nothing, but still not that useful. We should investigate how we are using this function in practice and figure out whether this is the right thing to use.
changed the title [-]`isHexChecksumAddress` is poorly named and documented[/-][+][utils] `isHexChecksumAddress` is poorly named and documented[/+]on Sep 11, 2026
Activity
mcmire commentedon Jul 9, 2025
@davidmurdoch I agree, this is a confusing function. Not only does it not tell you whether you have a truly valid checksum address, we're running a string against a pattern ostensibly so we can reliably convert it into a more useful type — except all we can tell TypeScript is that it's a string that starts with
0x, which is better than nothing, but still not that useful. We should investigate how we are using this function in practice and figure out whether this is the right thing to use.docs: clarify isHexChecksumAddress checks shape, not the checksum
[-]`isHexChecksumAddress` is poorly named and documented[/-][+][utils] `isHexChecksumAddress` is poorly named and documented[/+]