Skip to content

Commit 126c0a8

Browse files
committed
Remove usages of auto in encodeLeaf.
1 parent 157f1a4 commit 126c0a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

execution_chain/db/aristo/aristo_compute.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,13 @@ func clear(self: var AristoTrieWriter) =
111111
self.twoPassWriter.clear()
112112
self.hashWriter.clear()
113113

114-
template appendLeaf(w: var RlpWriter, pfx: NibblesBuf, leafData: auto) =
114+
template appendLeaf(w: var RlpWriter, pfx: NibblesBuf, leafData: Account | UInt256) =
115115
w.startList(2)
116116
w.append(pfx.toHexPrefix(isLeaf = true).data())
117117
w.wrapEncoding(1)
118118
w.append(leafData)
119119

120-
template encodeLeaf(w: var AristoTrieWriter, pfx: NibblesBuf, leafData: auto): HashKey =
120+
template encodeLeaf(w: var AristoTrieWriter, pfx: NibblesBuf, leafData: Account | UInt256): HashKey =
121121
w.clear()
122122
w.tracker.appendLeaf(pfx, leafData)
123123

0 commit comments

Comments
 (0)