Skip to content

fix(test): add missing isLeaf assertion in HexPrefixTests#10895

Merged
LukaszRozmej merged 1 commit into
NethermindEth:masterfrom
zeroprooff:fix/hexprefix-test-isleaf-assertion
Mar 20, 2026
Merged

fix(test): add missing isLeaf assertion in HexPrefixTests#10895
LukaszRozmej merged 1 commit into
NethermindEth:masterfrom
zeroprooff:fix/hexprefix-test-isleaf-assertion

Conversation

@zeroprooff
Copy link
Copy Markdown
Contributor

The test was checking round-trip encoding but never verified that FromBytes returns the correct isLeaf flag. Added explicit assertion to compare decoded isLeaf against expected test.IsTerm.

@LukaszRozmej LukaszRozmej merged commit 0e50abd into NethermindEth:master Mar 20, 2026
417 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants