Skip to content

Commit

Permalink
provider: emit disconnect on sign out
Browse files Browse the repository at this point in the history
  • Loading branch information
attente committed Dec 11, 2023
1 parent 8057462 commit 4e1d769
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/provider/src/transports/wallet-request-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ export class WalletRequestHandler implements ExternalProvider, JsonRpcHandler, P
}

signOut() {
if (this.account) {
this.notifyDisconnect()
}

// signed out state
this.setAccount(null)
}
Expand Down

0 comments on commit 4e1d769

Please sign in to comment.