From 1fecf9c7f4b807876939b718fe1045f9c4408def Mon Sep 17 00:00:00 2001 From: Gigi Date: Fri, 17 Oct 2025 01:26:32 +0200 Subject: [PATCH] fix(bunker): accept remote===pubkey for Amber; remove invalid-state warning --- src/App.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 303d10e5..bd9eabd7 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -261,11 +261,7 @@ function App() { if (account && account.type === 'nostr-connect') { const nostrConnectAccount = account as Accounts.NostrConnectAccount - // Sanity check: remote (bunker) pubkey must not equal our pubkey - if (nostrConnectAccount.signer.remote === nostrConnectAccount.pubkey) { - console.warn('[bunker] ❌ Invalid bunker state: remote pubkey equals user pubkey. Please reconnect using a fresh bunker URI from Amber.') - try { showToast?.('Reconnect bunker from Amber: invalid remote pubkey detected') } catch (err) { console.warn('[bunker] toast failed', err) } - } + // Note: for Amber bunker, the remote signer pubkey is the user's pubkey. This is expected. // Skip if we've already reconnected this account if (reconnectedAccounts.has(account.id)) {