-
Notifications
You must be signed in to change notification settings - Fork 23
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
Issues with 0x00... prefixed addresses #27
Comments
An address is not a |
So you say if the library im using is stripping 0-bytes from addresses it's not following the standard? |
switch ($encoding) {
case 'hex':
if (strpos($input, '0x') === 0) {
$input = str_replace('0x', '', $input);
}
This code gets triggered for address |
Actually found your other comment, thanks |
Thanks @slawomir-pryczek, I'll fix this asap. |
I am currently facing this issue as well and am hopeful for a resolution. |
Whe using to 0x00 prefixed addresses it'll return following error from GETH.
rlp: input string too short for common.Address, decoding into (types.DynamicFeeTx).To
I think that's the reason of recently introduced patch to remove leading 0's from strings. Seems that geth client can't decode addresses with 0's removed. So this seems to be in accordance with specification, but geth still can't read the data encoded according to specs when address is shorter than "normal".
The text was updated successfully, but these errors were encountered: