Skip to content

Commit

Permalink
fix(get-starknet): address not update when network change in get-star…
Browse files Browse the repository at this point in the history
…knet (#366)
  • Loading branch information
stanleyyconsensys authored Oct 4, 2024
1 parent f9a108e commit c96f75e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions packages/get-starknet/src/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c96f75e

Please sign in to comment.