Skip to content

Commit

Permalink
Also reset accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
manolisliolios committed Oct 18, 2024
1 parent c83e10a commit 61a9011
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/wallet/src/dapp-interface/WalletStandardInterface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,11 @@ export class SuiWallet implements Wallet {
};

#disconnect: StandardDisconnectMethod = async () => {
this.#accounts = [];
this.#events.emit('change', { accounts: this.accounts });
this.#send<DisconnectApp, void>({
type: 'disconnect-app',
origin: window.location.origin,
origin: '', // origin is auto-discovered for wallet's disconnect.
});
};

Expand Down

0 comments on commit 61a9011

Please sign in to comment.