diff --git a/whisper/whisperv6/api.go b/whisper/whisperv6/api.go index f75e502473..3f3a082afe 100644 --- a/whisper/whisperv6/api.go +++ b/whisper/whisperv6/api.go @@ -560,7 +560,7 @@ func (api *PublicWhisperAPI) NewMessageFilter(req Criteria) (string, error) { if len(req.Topics) > 0 { topics = make([][]byte, len(req.Topics)) for i, topic := range req.Topics { - topics[i] = make([]byte, len(topic)) + topics[i] = make([]byte, TopicLength) copy(topics[i], topic[:]) } }