File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
packages/thirdweb/src/wallets/manager Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " thirdweb " : patch
3+ ---
4+
5+ Initialize activeWalletConnectionStatus as 'unknown' instead of 'disconnected'
Original file line number Diff line number Diff line change @@ -15,7 +15,11 @@ import type { SmartWalletOptions } from "../smart/types.js";
1515import type { WalletId } from "../wallet-types.js" ;
1616
1717type WalletIdToConnectedWalletMap = Map < string , Wallet > ;
18- export type ConnectionStatus = "connected" | "disconnected" | "connecting" ;
18+ export type ConnectionStatus =
19+ | "connected"
20+ | "disconnected"
21+ | "connecting"
22+ | "unknown" ;
1923
2024const CONNECTED_WALLET_IDS = "thirdweb:connected-wallet-ids" ;
2125const LAST_ACTIVE_EOA_ID = "thirdweb:active-wallet-id" ;
@@ -47,7 +51,7 @@ export function createConnectionManager(storage: AsyncStorage) {
4751 const activeAccountStore = createStore < Account | undefined > ( undefined ) ;
4852 const activeWalletChainStore = createStore < Chain | undefined > ( undefined ) ;
4953 const activeWalletConnectionStatusStore =
50- createStore < ConnectionStatus > ( "disconnected " ) ;
54+ createStore < ConnectionStatus > ( "unknown " ) ;
5155
5256 const definedChainsStore = createStore < Map < number , Chain > > ( new Map ( ) ) ;
5357
You can’t perform that action at this time.
0 commit comments