From 952f2367d6079ff24653d32259567e068ae03ec8 Mon Sep 17 00:00:00 2001 From: martbost Date: Tue, 8 Sep 2026 09:32:38 -0500 Subject: [PATCH] WalletConnect: always show the wallet picker (no auto-deeplink to last wallet) Clear WALLETCONNECT_DEEPLINK_CHOICE before each connect so users aren't trapped auto-launching a wallet that can't finish (e.g. Trust on Amoy); the All Wallets picker shows every time so they can choose MetaMask. Co-Authored-By: Claude Opus 4.8 --- public/assets/wallet.js | 4 ++++ public/index.html | 2 +- public/my.html | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/public/assets/wallet.js b/public/assets/wallet.js index 446398a..3787d2c 100644 --- a/public/assets/wallet.js +++ b/public/assets/wallet.js @@ -88,6 +88,10 @@ window.IAPWallet = (function () { redirect: { native: '', universal: location.origin + '/my' } } }); } + // WalletConnect remembers the last wallet and auto-deep-links to it, which + // traps users on a wallet that won't finish (e.g. Trust on a testnet). Clear + // that choice so the picker ("All Wallets") shows every time. + try { localStorage.removeItem('WALLETCONNECT_DEEPLINK_CHOICE'); } catch (e) {} if (!wcProvider.session) await wcProvider.connect(); // QR on desktop, opens the wallet app on mobile return wcProvider; } diff --git a/public/index.html b/public/index.html index 2bf08b7..b51a08e 100644 --- a/public/index.html +++ b/public/index.html @@ -439,7 +439,7 @@ - + diff --git a/public/my.html b/public/my.html index 42a876e..8e8bbcb 100644 --- a/public/my.html +++ b/public/my.html @@ -696,7 +696,7 @@ - +