adambor / SolLightning-dApp-v2

User facing web app using SolLightning SDK
Apache License 2.0
2 stars 1 forks source link

Fix not changing BTC wallet when Phantom account changes #23

Closed adambor closed 1 month ago

adambor commented 1 month ago

Some users use multiple wallet accounts in their phantom wallet. The Solana side is properly switched once the user switches accounts, however this is not the case with the Bitcoin side.

This should be properly handled this way: https://docs.phantom.app/bitcoin/establishing-a-connection#changing-accounts

NOTE: Check for the same principle in Xverse & MagicEden wallets

adambor commented 1 month ago

Fixed in 0eab5be6d7db67bf5fe27b377145a0760dfa0ce9

sats connect doesn't have a documented way how one can listen to change of accounts, so this doesn't work for Xverse, MagicEden & XDEFI wallets.