We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
here
func IsHex(str string) bool { l := len(str) return l >= 4 && l%2 == 0 && str[0:2] == "0x" }
This means that 0xHELLO_MY_NAME_IS_STEVEN_@#$^&* is valid hex, but 0102030f is not...
0xHELLO_MY_NAME_IS_STEVEN_@#$^&*
0102030f
The text was updated successfully, but these errors were encountered:
common: improve IsHexAddress and add tests (#15551)
afb8154
Also unexport isHex, hasHexPrefix because IsHexAddress is the only caller. Fixes #15550
common: improve IsHexAddress and add tests (ethereum#15551)
8e717d2
Also unexport isHex, hasHexPrefix because IsHexAddress is the only caller. Fixes ethereum#15550
No branches or pull requests
here
This means that
0xHELLO_MY_NAME_IS_STEVEN_@#$^&*
is valid hex, but0102030f
is not...The text was updated successfully, but these errors were encountered: