Skip to content

refactor: remove redundant HexConvert class#10045

Closed
dizer-ti wants to merge 1 commit into
NethermindEth:masterfrom
dizer-ti:fix/hexconvert-uint256-overflow
Closed

refactor: remove redundant HexConvert class#10045
dizer-ti wants to merge 1 commit into
NethermindEth:masterfrom
dizer-ti:fix/hexconvert-uint256-overflow

Conversation

@dizer-ti

Copy link
Copy Markdown
Contributor

Follow-up to #10033 (comment)

Remove HexConvert class and use standard methods instead:

  • UInt256.Parse() for hex to UInt256 conversion
  • Convert.ToUInt64() for hex to ulong conversion

Comment thread tools/SendBlobs/HexConvert.cs
@dizer-ti

Copy link
Copy Markdown
Contributor Author

@LukaszRozmej @alexb5dh could you please align on whether to keep ToUInt64 or remove it entirely?

@LukaszRozmej

Copy link
Copy Markdown
Member

@LukaszRozmej @alexb5dh could you please align on whether to keep ToUInt64 or remove it entirely?

Yeah agree with @alexb5dh that suggestion was suboptimal and previous was better on ToUInt64. Rest is good.

@dizer-ti dizer-ti force-pushed the fix/hexconvert-uint256-overflow branch from bc8bba9 to 5d349b9 Compare January 2, 2026 10:56
@dizer-ti

dizer-ti commented Jan 2, 2026

Copy link
Copy Markdown
Contributor Author

Done! Kept ToUInt64, replaced only ToUInt256 with UInt256.Parse.

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.

3 participants