diff --git a/stateless/multi_keys.nim b/stateless/multi_keys.nim index a61d5d521..dd7df15a0 100644 --- a/stateless/multi_keys.nim +++ b/stateless/multi_keys.nim @@ -103,7 +103,7 @@ func groups*(m: MultikeysRef, parentGroup: Group, depth: int): BranchGroup = result.groups[nibble.int] = g func groups*(m: MultikeysRef, depth: int, n: NibblesSeq, parentGroup: Group): MatchGroup = - # using common-prefix comparison, this iterator + # using common-prefix comparison, this func # will produce one match group or no match at all var g = Group(first: parentGroup.first) @@ -147,7 +147,7 @@ func groups*(m: MultikeysRef, depth: int, n: NibblesSeq, parentGroup: Group): Ma func isValidMatch(mg: MatchGroup): bool {.inline.} = result = mg.match and mg.group.first == mg.group.last -proc visitMatch*(m: var MultikeysRef, mg: MatchGroup, depth: int, k: NibblesSeq): KeyData = +proc visitMatch*(m: var MultikeysRef, mg: MatchGroup, depth: int): KeyData = doAssert(mg.isValidMatch) m.keys[mg.group.first].visited = true result = m.keys[mg.group.first] diff --git a/stateless/witness_from_tree.nim b/stateless/witness_from_tree.nim index f80814259..596c58e09 100644 --- a/stateless/witness_from_tree.nim +++ b/stateless/witness_from_tree.nim @@ -262,7 +262,7 @@ proc getBranchRecurse(wb: var WitnessBuilder, z: var StackElem) = return # there should be only one match - let kd = z.keys.visitMatch(mg, z.depth, k) + let kd = z.keys.visitMatch(mg, z.depth) if z.storageMode: doAssert(kd.storageMode) writeAccountStorageLeafNode(wb, kd.storageSlot, value.toBytes.decode(UInt256), z.node, z.depth)