aboutsummaryrefslogtreecommitdiffstats
path: root/whisper
diff options
context:
space:
mode:
authorEmil <mursalimovemeel@gmail.com>2018-09-15 04:07:13 +0800
committerFelix Lange <fjl@users.noreply.github.com>2018-09-15 04:07:13 +0800
commit86a03f97d30c11a5321fa2f0fd37cbc4c7f63a32 (patch)
tree92ee61a4d5a2c750b6abc257f30b040485e29842 /whisper
parent7bb95a9a64c9d26bef4f15fdd9301bb0b5cdb668 (diff)
downloadgo-tangerine-86a03f97d30c11a5321fa2f0fd37cbc4c7f63a32.tar
go-tangerine-86a03f97d30c11a5321fa2f0fd37cbc4c7f63a32.tar.gz
go-tangerine-86a03f97d30c11a5321fa2f0fd37cbc4c7f63a32.tar.bz2
go-tangerine-86a03f97d30c11a5321fa2f0fd37cbc4c7f63a32.tar.lz
go-tangerine-86a03f97d30c11a5321fa2f0fd37cbc4c7f63a32.tar.xz
go-tangerine-86a03f97d30c11a5321fa2f0fd37cbc4c7f63a32.tar.zst
go-tangerine-86a03f97d30c11a5321fa2f0fd37cbc4c7f63a32.zip
all: simplify s[:] to s where s is a slice (#17673)
Diffstat (limited to 'whisper')
-rw-r--r--whisper/whisperv5/filter_test.go2
-rw-r--r--whisper/whisperv6/filter_test.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/whisper/whisperv5/filter_test.go b/whisper/whisperv5/filter_test.go
index c01c22668..33138fb1a 100644
--- a/whisper/whisperv5/filter_test.go
+++ b/whisper/whisperv5/filter_test.go
@@ -56,7 +56,7 @@ func generateFilter(t *testing.T, symmetric bool) (*Filter, error) {
f.Topics = make([][]byte, topicNum)
for i := 0; i < topicNum; i++ {
f.Topics[i] = make([]byte, 4)
- mrand.Read(f.Topics[i][:])
+ mrand.Read(f.Topics[i])
f.Topics[i][0] = 0x01
}
diff --git a/whisper/whisperv6/filter_test.go b/whisper/whisperv6/filter_test.go
index 82e4aa024..5ce99d9f6 100644
--- a/whisper/whisperv6/filter_test.go
+++ b/whisper/whisperv6/filter_test.go
@@ -56,7 +56,7 @@ func generateFilter(t *testing.T, symmetric bool) (*Filter, error) {
f.Topics = make([][]byte, topicNum)
for i := 0; i < topicNum; i++ {
f.Topics[i] = make([]byte, 4)
- mrand.Read(f.Topics[i][:])
+ mrand.Read(f.Topics[i])
f.Topics[i][0] = 0x01
}