Skip to content

Fix HEX encoding for very large numbers - issue #268#291

Open
kaiesh wants to merge 1 commit intoweb3p:masterfrom
kaiesh:master
Open

Fix HEX encoding for very large numbers - issue #268#291
kaiesh wants to merge 1 commit intoweb3p:masterfrom
kaiesh:master

Conversation

@kaiesh
Copy link

@kaiesh kaiesh commented Aug 14, 2022

Very large non-negative numbers are encoded to hex strings in excess of 64 chars - this is due to Two's Complement representation being set to true on these non-negative numbers.

This minor edit ensures that Two's Complement representation on hex conversion is only applied when the number is actually negative.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant