Merge pull request #181 from vazw/master

Correct Nip-46 kind for nostr-connect
This commit is contained in:
hzrd149 2024-05-22 10:18:06 -05:00 committed by GitHub
commit e4c96851a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -87,7 +87,7 @@ export class NostrConnectClient {
this.sub.setRelays(this.relays);
this.sub.setFilters([
{
kinds: [kinds.NostrConnect, 24134],
kinds: [kinds.NostrConnect],
"#p": [this.publicKey],
},
]);
@ -189,7 +189,7 @@ export class NostrConnectClient {
private async makeAdminRequest<T extends NostrConnectMethod>(
method: T,
params: RequestParams[T],
kind = 24134,
kind = 24133,
): Promise<ResponseResults[T]> {
if (!this.provider) throw new Error("Missing provider");
const id = nanoid(8);