mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
accounts/abi: minor nitpick
This commit is contained in:
parent
4b8e707ed4
commit
c39c4f55c2
1 changed files with 1 additions and 2 deletions
|
|
@ -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[:]
|
||||
|
|
|
|||
Loading…
Reference in a new issue