Fix pubkey param to nip46 connect

NIP46 requires remote_user_pubkey as first param to connect.
This commit is contained in:
Nostr.Band
2024-03-27 11:25:16 +01:00
committed by fiatjaf_
parent 02da1dc036
commit e5cda3509c

View File

@@ -193,7 +193,7 @@ export class BunkerSigner {
* Calls the "connect" method on the bunker.
*/
async connect(): Promise<void> {
await this.sendRequest('connect', [getPublicKey(this.secretKey), this.bp.secret || ''])
await this.sendRequest('connect', [this.bp.pubkey, this.bp.secret || ''])
}
/**