From fdb1dd08e345fa0742ea0df0c49a62966fbe5202 Mon Sep 17 00:00:00 2001 From: Aaron Chen Date: Mon, 8 Apr 2024 19:10:55 +0800 Subject: [PATCH] trie/utils: use Uint64 Co-authored-by: Martin HS --- trie/utils/verkle.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trie/utils/verkle.go b/trie/utils/verkle.go index 8dce9d803b..328b2d2527 100644 --- a/trie/utils/verkle.go +++ b/trie/utils/verkle.go @@ -209,7 +209,7 @@ func codeChunkIndex(chunk *uint256.Int) (*uint256.Int, byte) { chunkOffset = new(uint256.Int).Add(codeOffset, chunk) treeIndex, subIndexMod = new(uint256.Int).DivMod(chunkOffset, verkleNodeWidth, new(uint256.Int)) ) - return treeIndex, byte(subIndexMod[0]) + return treeIndex, byte(subIndexMod.Uint64()) } // CodeChunkKey returns the verkle tree key of the code chunk for the