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
How is this the correct behavior? Docs for the function say "Enables strict mode. Whether or not to compare the address against its checksum." and here it is bypassing that with strict = true. If the behavior is correct, it would be worth fixing the documentation to explain this case.
This issue has been locked since it has been closed for more than 14 days.
If you found a concrete bug or regression related to it, please open a new bug report with a reproduction against the latest Viem version. If you have any questions or comments you can create a new discussion thread.
Check existing issues
Viem Version
2.21.7
Current Behavior
If an address is all lower-case, it will not have it's checksum checked. The problematic code is here:
viem/src/utils/address/isAddress.ts
Line 33 in 2159ca0
Expected Behavior
Passing in any address will have checksum checked when strict is true.
Steps To Reproduce
Link to Minimal Reproducible Example
https://stackblitz.com/edit/viem-getting-started-x9vfv5fu?file=index.ts,package.json
Anything else?
No response
The text was updated successfully, but these errors were encountered: