Skip to content

Commit

Permalink
chore(walletconnect-signing-manager): address comment - single as const
Browse files Browse the repository at this point in the history
  • Loading branch information
F-OBrien committed May 30, 2024
1 parent fd3b550 commit d905d3f
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ export class WalletConnect implements BaseWallet {

this.client = await SignClient.init(this.config);
const eventHandlers = [
{ event: 'session_delete' as const, handler: this._handleSessionDeleteOrExpire },
{ event: 'session_expire' as const, handler: this._handleSessionDeleteOrExpire },
{ event: 'session_update' as const, handler: this._handleSessionChange },
{ event: 'session_extend' as const, handler: this._handleSessionChange },
];
{ event: 'session_delete', handler: this._handleSessionDeleteOrExpire },
{ event: 'session_expire', handler: this._handleSessionDeleteOrExpire },
{ event: 'session_update', handler: this._handleSessionChange },
{ event: 'session_extend', handler: this._handleSessionChange },
] as const;

eventHandlers.forEach(({ event, handler }) => {
this.client?.on(event, handler);
Expand Down

0 comments on commit d905d3f

Please sign in to comment.