mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-03-18 05:42:20 +01:00
nip46: fix pubkey passed to "connect".
This commit is contained in:
parent
d690fd7f07
commit
aea2895441
@ -77,8 +77,7 @@ func ConnectBunker(
|
||||
onAuth,
|
||||
)
|
||||
|
||||
clientPubKey, _ := nostr.GetPublicKey(clientSecretKey)
|
||||
_, err = bunker.RPC(ctx, "connect", []string{clientPubKey, secret})
|
||||
_, err = bunker.RPC(ctx, "connect", []string{targetPublicKey, secret})
|
||||
return bunker, err
|
||||
}
|
||||
|
||||
|
@ -50,8 +50,7 @@ func CreateAccount(
|
||||
onAuth,
|
||||
)
|
||||
|
||||
clientPubKey, _ := nostr.GetPublicKey(clientSecretKey)
|
||||
_, err = bunker.RPC(ctx, "connect", []string{clientPubKey, ""})
|
||||
_, err = bunker.RPC(ctx, "connect", []string{providerPubkey, ""})
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("initial connect error: %w", err)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user