Skip to content

Commit d00bf8b

Browse files
authored
Merge pull request #2 from commitground/hotfix-1.0.3
Hotfix 1.0.3
2 parents 2e046c8 + dff569c commit d00bf8b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
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
}

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "solidity-patricia-tree",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "Patricia Tree solidity implemenation",
55
"directories": {
66
"test": "test"

0 commit comments

Comments
 (0)