From 896fc51379593c75e9beda2232e12eadb60cdc1b Mon Sep 17 00:00:00 2001 From: zhiqiangxu <652732310@qq.com> Date: Fri, 8 Nov 2024 22:28:42 +0800 Subject: [PATCH] trie/utils: remove unneeded initialization (#30472) --- trie/utils/verkle.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/trie/utils/verkle.go b/trie/utils/verkle.go index 054fbcf150..4294f5e4be 100644 --- a/trie/utils/verkle.go +++ b/trie/utils/verkle.go @@ -156,10 +156,6 @@ func GetTreeKey(address []byte, treeIndex *uint256.Int, subIndex byte) []byte { func GetTreeKeyWithEvaluatedAddress(evaluated *verkle.Point, treeIndex *uint256.Int, subIndex byte) []byte { var poly [5]fr.Element - poly[0].SetZero() - poly[1].SetZero() - poly[2].SetZero() - // little-endian, 32-byte aligned treeIndex var index [32]byte for i := 0; i < len(treeIndex); i++ { @@ -297,8 +293,6 @@ func evaluateAddressPoint(address []byte) *verkle.Point { } var poly [3]fr.Element - poly[0].SetZero() - // 32-byte address, interpreted as two little endian // 16-byte numbers. verkle.FromLEBytes(&poly[1], address[:16])