nbd-wtf / nostr-tools

Tools for developing Nostr clients.
The Unlicense
685 stars 188 forks source link

Fix count request in anstract relay #402

Closed hzrd149 closed 4 months ago

hzrd149 commented 4 months ago

The count method is wrapping the filters in an extra array. which makes it an invalid request according to NIP-45

Before

["COUNT","count:1",[{"kinds":[1]}]]

After

["COUNT","count:1",{"kinds":[1]}]