From 009373982980391e1316649eb540f47c70de017f Mon Sep 17 00:00:00 2001 From: Bilog WEB3 <155262265+Bilogweb3@users.noreply.github.com> Date: Wed, 26 Nov 2025 09:12:13 +0100 Subject: [PATCH] crypto: fix variable shadowing in Keccak256 functions --- crypto/keccak.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crypto/keccak.go b/crypto/keccak.go index 0ad79a63c1..807cd29742 100644 --- a/crypto/keccak.go +++ b/crypto/keccak.go @@ -41,8 +41,8 @@ func Keccak256(data ...[]byte) []byte { b := make([]byte, 32) d := hasherPool.Get().(KeccakState) d.Reset() - for _, b := range data { - d.Write(b) + for _, chunk := range data { + d.Write(chunk) } d.Read(b) hasherPool.Put(d) @@ -54,8 +54,8 @@ func Keccak256(data ...[]byte) []byte { func Keccak256Hash(data ...[]byte) (h common.Hash) { d := hasherPool.Get().(KeccakState) d.Reset() - for _, b := range data { - d.Write(b) + for _, chunk := range data { + d.Write(chunk) } d.Read(h[:]) hasherPool.Put(d)