trie/utils: remove unneeded initialization (#30472)

This commit is contained in:
zhiqiangxu 2024-11-08 22:28:42 +08:00 committed by Martin HS
parent d71da302db
commit 0e06e891c6
1 changed files with 0 additions and 6 deletions

View File

@ -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])