-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Cannot use uppercase address in isAddress #1256
Comments
Can you include a code snippet of how you are using the |
Why isn't this just using the |
@sc0Vu from what I understand, case can be significant in ETH addresses. In particular, the default is that addresses are all lowercase, and that if addresses contain a mix of upper and lower case then the case of the A-F digits is providing a kind of in-line checksum of the address to help prevent typos. So... not working with uppercase hex digits may be by design. For details on the clever mixed-case checksum, see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-55.md |
I've try many times to use uppercase address in isAddress, but it always return false.
Test address input
0XCA35B7D915458EF540ADE6068DFE2F44E8FA733C
.After trace the source code, I found the els if didn't work (it return false in first if).
So the uppercase address cannot using...
https://github.com/ethereum/web3.js/blob/bacd46e94e31ec5d4d70c4396f42eb6ff6146a20/packages/web3-utils/src/utils.js#L81
The text was updated successfully, but these errors were encountered: