diff options
author | Emil <mursalimovemeel@gmail.com> | 2018-09-15 04:07:13 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2018-09-15 04:07:13 +0800 |
commit | 86a03f97d30c11a5321fa2f0fd37cbc4c7f63a32 (patch) | |
tree | 92ee61a4d5a2c750b6abc257f30b040485e29842 /core/types | |
parent | 7bb95a9a64c9d26bef4f15fdd9301bb0b5cdb668 (diff) | |
download | dexon-86a03f97d30c11a5321fa2f0fd37cbc4c7f63a32.tar dexon-86a03f97d30c11a5321fa2f0fd37cbc4c7f63a32.tar.gz dexon-86a03f97d30c11a5321fa2f0fd37cbc4c7f63a32.tar.bz2 dexon-86a03f97d30c11a5321fa2f0fd37cbc4c7f63a32.tar.lz dexon-86a03f97d30c11a5321fa2f0fd37cbc4c7f63a32.tar.xz dexon-86a03f97d30c11a5321fa2f0fd37cbc4c7f63a32.tar.zst dexon-86a03f97d30c11a5321fa2f0fd37cbc4c7f63a32.zip |
all: simplify s[:] to s where s is a slice (#17673)
Diffstat (limited to 'core/types')
-rw-r--r-- | core/types/bloom9.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/types/bloom9.go b/core/types/bloom9.go index a76b6f33c..d045c9e66 100644 --- a/core/types/bloom9.go +++ b/core/types/bloom9.go @@ -113,7 +113,7 @@ func LogsBloom(logs []*Log) *big.Int { } func bloom9(b []byte) *big.Int { - b = crypto.Keccak256(b[:]) + b = crypto.Keccak256(b) r := new(big.Int) @@ -130,7 +130,7 @@ var Bloom9 = bloom9 func BloomLookup(bin Bloom, topic bytesBacked) bool { bloom := bin.Big() - cmp := bloom9(topic.Bytes()[:]) + cmp := bloom9(topic.Bytes()) return bloom.And(bloom, cmp).Cmp(cmp) == 0 } |