Skip to content

Commit f2458ec

Browse files
committed
hotfix: return empty byte when there's no matched key
1 parent 2e046c8 commit f2458ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contracts/tree.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,8 @@ library PatriciaTree {
214214
// Partial match, just follow the path
215215
return _findAtNode(tree, e.node, suffix);
216216
} else {
217-
// Mismatch, so let us create a new branch node.
218-
revert();
217+
// Mismatch, return empty bytes
218+
return bytes32(0);
219219
}
220220
}
221221
}

0 commit comments

Comments
 (0)