Page MenuHomePhabricator

[tests] use uint256_hex instead of repeating the string formatting pattern
ClosedPublic

Authored by PiRK on Feb 15 2023, 08:41.

Details

Summary

Follow-up to D11868

This change makes the code more readable by abstracting the int-to-hex string formatting.

Test Plan

ninja check-functional-extended

grep -r "064x" test/functional
grep -r "0{64}x" test/functional

Diff Detail

Event Timeline

PiRK requested review of this revision.Feb 15 2023, 08:41

nits: fix crazy autopep8 formatting, don't use a f-string to format the already formatted string returned by uint256_hex

This revision is now accepted and ready to land.Feb 15 2023, 09:18