Skip to content

Commit 427a616

Browse files
committed
fix: set depth upon deserializing stem nodes
1 parent baea4d8 commit 427a616

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

trie/binary.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,7 @@ func DeserializeNode(serialized []byte, depth int) (BinaryNode, error) {
578578
return &StemNode{
579579
Stem: serialized[1:32],
580580
Values: values[:],
581+
depth: depth,
581582
}, nil
582583
default:
583584
return nil, errors.New("invalid node type")

0 commit comments

Comments
 (0)