From b10a3538b13b4d24c62d2801c39ebc46053e7a4b Mon Sep 17 00:00:00 2001 From: Abhay Date: Sat, 21 Sep 2024 12:14:14 +0530 Subject: [PATCH] Remove extra kind from example --- 88.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/88.md b/88.md index d5b345f..7c21d96 100644 --- a/88.md +++ b/88.md @@ -88,7 +88,7 @@ Example for querying polls. const fetchVoteEvents = (filterPubkeys: string[]) => { let resultFilter: Filter = { "#e": [pollEvent.id], - kinds: [1070, 1018], + kinds: [1018], }; if (filterPubkeys?.length) { resultFilter.authors = filterPubkeys; @@ -96,7 +96,7 @@ const fetchVoteEvents = (filterPubkeys: string[]) => { if (pollExpiration) { resultFilter.until = Number(pollExpiration); } - poolRef.current.subscribeMany(relays, [resultFilter], { + pool.subscribeMany(relays, [resultFilter], { onevent: handleResultEvent, }); };