From ce89b1b771ba1c3af1e1d45febb647cd9349ddaf Mon Sep 17 00:00:00 2001 From: tiero <3596602+tiero@users.noreply.github.com> Date: Tue, 3 Jan 2023 16:57:25 +0100 Subject: [PATCH] fix Filter type --- src/rpc.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/rpc.ts b/src/rpc.ts index 99e7f31..1f1e42c 100644 --- a/src/rpc.ts +++ b/src/rpc.ts @@ -8,6 +8,7 @@ import { nip04, Event, Sub, + Filter, } from 'nostr-tools'; export interface NostrRPCRequest { @@ -84,7 +85,7 @@ export class NostrRPC { authors: [target], '#p': [this.self.pubkey], limit: 1, - }, + } as Filter, ]); sub.on('event', async (event: Event) => { @@ -137,7 +138,7 @@ export class NostrRPC { kinds: [4], '#p': [this.self.pubkey], since: now(), - }, + } as Filter, ]); sub.on('event', async (event: Event) => {