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, }); };