-
Notifications
You must be signed in to change notification settings - Fork 678
zero-length unformatted data fields should return 0x, not 0x0 #51
Comments
Hi @aakilfernandes! Funny story. I just started writing up a nice polite response telling you how wrong your assumption is, and then I went to grab a reference link from the Ethereum RPC wiki and discovered what an incorrect, smug jerk I am! 😂 You're absolutely correct - unformatted data values which are zero length should be returned as Does this break anything for you? |
0x
, not 0x0
0x
, not 0x0
Was hoping to knock this out quickly, but I hit some snags. Will need to come back to it later. PRs welcome. |
A possible side-effect of this issue is sometimes non-zero fields are prefixed with a zero, which Geth no longer accepts as valid. For example I have seen this occurring with
|
i also realized, that empty arrays return inconsistent results if empty, e.g. [0x0, 0x, 0x, ...] |
I don't think this issue was completely fixed before. I have submitted #171 to try to resolve it. |
…ct should return 0x)
Additional fix to #51 (eth_getCode on a non-contract should return 0x)
Not sure if this is an issue or not, but
eth_getCode
returns0x0
for non-contract accounts. My assumption is that it should return0x
.The text was updated successfully, but these errors were encountered: