mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-09-20 13:01:07 +02:00
Merge pull request #181 from vazw/master
Correct Nip-46 kind for nostr-connect
This commit is contained in:
@@ -87,7 +87,7 @@ export class NostrConnectClient {
|
|||||||
this.sub.setRelays(this.relays);
|
this.sub.setRelays(this.relays);
|
||||||
this.sub.setFilters([
|
this.sub.setFilters([
|
||||||
{
|
{
|
||||||
kinds: [kinds.NostrConnect, 24134],
|
kinds: [kinds.NostrConnect],
|
||||||
"#p": [this.publicKey],
|
"#p": [this.publicKey],
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
@@ -189,7 +189,7 @@ export class NostrConnectClient {
|
|||||||
private async makeAdminRequest<T extends NostrConnectMethod>(
|
private async makeAdminRequest<T extends NostrConnectMethod>(
|
||||||
method: T,
|
method: T,
|
||||||
params: RequestParams[T],
|
params: RequestParams[T],
|
||||||
kind = 24134,
|
kind = 24133,
|
||||||
): Promise<ResponseResults[T]> {
|
): Promise<ResponseResults[T]> {
|
||||||
if (!this.provider) throw new Error("Missing provider");
|
if (!this.provider) throw new Error("Missing provider");
|
||||||
const id = nanoid(8);
|
const id = nanoid(8);
|
||||||
|
Reference in New Issue
Block a user