From c96f75eb6c95b76513e3a0488d7ccdb3d59e5a71 Mon Sep 17 00:00:00 2001 From: Stanley Yuen <102275989+stanleyyconsensys@users.noreply.github.com> Date: Fri, 4 Oct 2024 16:59:06 +0800 Subject: [PATCH] fix(get-starknet): address not update when network change in get-starknet (#366) --- packages/get-starknet/src/wallet.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/get-starknet/src/wallet.ts b/packages/get-starknet/src/wallet.ts index a24c81ca..a08f1b56 100644 --- a/packages/get-starknet/src/wallet.ts +++ b/packages/get-starknet/src/wallet.ts @@ -101,11 +101,6 @@ export class MetaMaskSnapWallet implements IStarknetWindowObject { } async #getWalletAddress(chainId: string) { - // address always same regardless network, only single address provided - if (this.selectedAddress) { - return this.selectedAddress; - } - const accountResponse = await this.snap.recoverDefaultAccount(chainId); if (!accountResponse?.address) {