-
-
Notifications
You must be signed in to change notification settings - Fork 834
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with Address ToString function #2745
Comments
address to string function not work same, take a look to 'f' and 'F' or to 'b' and 'B' |
The addresses are the same. One is checksummed, and the other is not. |
why Address in account is checksummed and address that i recive is not checksummed? how i can checksum this address in viem? |
in two cases we have the same type of object (address) and it is logical that the information in them should be the same (in same format) the question is, why are they different (in diffrent format)? |
1 similar comment
The Account address is often used for display purposes, so it’s default to the checksummed version for safety. If you want alternative behavior, feel free to checksum it yourself or de-checksum. |
got it, thank you for the answer |
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.10
Current Behavior
I got diffrent addresses in account Object and in Event log that i recive from request
Expected Behavior
I expect same addresses in account Object and in Event log that i recive
Steps To Reproduce
https://stackblitz.com/edit/stackblitz-starters-hsq1lz?file=test%2FTest.ts
it's second test
Link to Minimal Reproducible Example
https://stackblitz.com/edit/stackblitz-starters-hsq1lz?file=test%2FTest.ts
Anything else?
No response
The text was updated successfully, but these errors were encountered: