Skip to content

Commit 61c10c4

Browse files
authored
fix(contracts): OZ-N02 Inconsistent Integer Base in Inline Assembly (#1139)
1 parent e312634 commit 61c10c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libraries/verifier/ZkTrieVerifier.sol

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ library ZkTrieVerifier {
9090
// the first byte is the number of nodes + 1
9191
let nodes := sub(byte(0, calldataload(ptr)), 1)
9292
require(lt(nodes, 249), "InvalidNodeDepth")
93-
ptr := add(ptr, 1)
93+
ptr := add(ptr, 0x01)
9494

9595
// treat the leaf node with different logic
9696
for {
@@ -102,7 +102,7 @@ library ZkTrieVerifier {
102102
let nodeType := byte(0, calldataload(ptr))
103103
// 6 <= nodeType && nodeType < 10
104104
require(lt(sub(nodeType, 6), 4), "InvalidBranchNodeType")
105-
ptr := add(ptr, 1)
105+
ptr := add(ptr, 0x01)
106106

107107
// load left/right child hash
108108
let childHashL := calldataload(ptr)

0 commit comments

Comments
 (0)