You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuweni.apache.org by GitBox <gi...@apache.org> on 2022/11/22 05:07:12 UTC

[GitHub] [incubator-tuweni] ajsutton commented on issue #448: toShortHexString should return "0x0" for 0

ajsutton commented on issue #448:
URL: https://github.com/apache/incubator-tuweni/issues/448#issuecomment-1323075951

   It largely depends on the requirements for serialisation.  In RLP a UInt64 of 0 is actually a byte string (because RLP doesn't have numbers) so is serialised as `0x`.  In JSON-RPC Quantities trim leading zeros _except_ for the zero value so 0 is represented as `0x0`. So there's isn't really one "right" answer.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@tuweni.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tuweni.apache.org
For additional commands, e-mail: dev-help@tuweni.apache.org