mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-10 09:08:50 +00:00
Fix pubkey param to nip46 connect
NIP46 requires remote_user_pubkey as first param to connect.
This commit is contained in:
2
nip46.ts
2
nip46.ts
@@ -193,7 +193,7 @@ export class BunkerSigner {
|
|||||||
* Calls the "connect" method on the bunker.
|
* Calls the "connect" method on the bunker.
|
||||||
*/
|
*/
|
||||||
async connect(): Promise<void> {
|
async connect(): Promise<void> {
|
||||||
await this.sendRequest('connect', [getPublicKey(this.secretKey), this.bp.secret || ''])
|
await this.sendRequest('connect', [this.bp.pubkey, this.bp.secret || ''])
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user