Skip to content

Commit af9bb5c

Browse files
zhiqiangxuzfy0701
authored andcommitted
trie/utils: remove unneeded initialization (ethereum#30472)
1 parent cd85b64 commit af9bb5c

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

trie/utils/verkle.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,6 @@ func GetTreeKey(address []byte, treeIndex *uint256.Int, subIndex byte) []byte {
156156
func GetTreeKeyWithEvaluatedAddress(evaluated *verkle.Point, treeIndex *uint256.Int, subIndex byte) []byte {
157157
var poly [5]fr.Element
158158

159-
poly[0].SetZero()
160-
poly[1].SetZero()
161-
poly[2].SetZero()
162-
163159
// little-endian, 32-byte aligned treeIndex
164160
var index [32]byte
165161
for i := 0; i < len(treeIndex); i++ {
@@ -297,8 +293,6 @@ func evaluateAddressPoint(address []byte) *verkle.Point {
297293
}
298294
var poly [3]fr.Element
299295

300-
poly[0].SetZero()
301-
302296
// 32-byte address, interpreted as two little endian
303297
// 16-byte numbers.
304298
verkle.FromLEBytes(&poly[1], address[:16])

0 commit comments

Comments
 (0)