From c39c4f55c2588e7c428166211ae9ea6594be7d13 Mon Sep 17 00:00:00 2001 From: Marius van der Wijden Date: Wed, 8 Apr 2020 12:58:44 +0200 Subject: [PATCH] accounts/abi: minor nitpick --- accounts/abi/bind/topics.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/accounts/abi/bind/topics.go b/accounts/abi/bind/topics.go index 24c9815eee..7b64f03347 100644 --- a/accounts/abi/bind/topics.go +++ b/accounts/abi/bind/topics.go @@ -106,8 +106,7 @@ func genIntType(rule int64, size uint) []byte { // extended to common.Hashlength bytes. topic = [common.HashLength]byte{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255} } - var i uint - for i = 0; i < size; i++ { + for i := uint(0); i < size; i++ { topic[common.HashLength-i-1] = byte(rule >> (i * 8)) } return topic[:]