You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tuweni.apache.org by "Antoine Toulme (Jira)" <ji...@apache.org> on 2020/02/11 01:48:00 UTC
[jira] [Resolved] (TUWENI-31) "Bytes.toShortHextString" is too
short for zero quantities.
[ https://issues.apache.org/jira/browse/TUWENI-31?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Antoine Toulme resolved TUWENI-31.
----------------------------------
Fix Version/s: 1.0.0
Assignee: Antoine Toulme
Resolution: Fixed
Fixed with a new method `toQuantityHexString()` added to Bytes.
See commit 59d76bd5.
> "Bytes.toShortHextString" is too short for zero quantities.
> -----------------------------------------------------------
>
> Key: TUWENI-31
> URL: https://issues.apache.org/jira/browse/TUWENI-31
> Project: Tuweni
> Issue Type: Bug
> Reporter: Abdelhamid Bakhta
> Assignee: Antoine Toulme
> Priority: High
> Fix For: 1.0.0
>
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> *toShortHextString* method currently returns `0x` string for byte array with only zeros. We should expect a `0x0` in this case.
> I would suggest one of the following approaches:
> * update the method to return `0x0`
> * add a new method for quantities and use the existing one for byte arrays
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@tuweni.apache.org
For additional commands, e-mail: issues-help@tuweni.apache.org