From be168ebe3f2ac351dc8981c97cb33d032df52b1c Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Tue, 6 Apr 2021 19:13:17 -0400 Subject: [PATCH] fix: indirect access to content topic --- waku/v2/protocol/waku_store/waku_store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waku/v2/protocol/waku_store/waku_store.go b/waku/v2/protocol/waku_store/waku_store.go index 977c691a..a9adabc0 100644 --- a/waku/v2/protocol/waku_store/waku_store.go +++ b/waku/v2/protocol/waku_store/waku_store.go @@ -148,7 +148,7 @@ func (w *WakuStore) FindMessages(query *protocol.HistoryQuery) *protocol.History // data holds IndexedWakuMessage whose topics match the query var data []IndexedWakuMessage for _, indexedMsg := range w.messages { - if contains(query.Topics, *indexedMsg.msg.ContentTopic) { + if contains(query.Topics, indexedMsg.msg.ContentTopic) { data = append(data, indexedMsg) } }