Page MenuHomePhabricator

[electrum] remove unnecessary hex conversion when converting int to bytes
ClosedPublic

Authored by PiRK on Sep 8 2023, 14:31.

Details

Summary

Python int has a builtin to_bytes method.
Also rename int_to_hex to int_to_le_hex to clarify what it is doing.

Test Plan
python test_runner.py
python -m electrumabc.bitcoin   # run doctest

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

PiRK requested review of this revision.Sep 8 2023, 14:31
This revision is now accepted and ready to land.Sep 11 2023, 08:25