Skip to content

Commit

Permalink
refactor(pera): remove unused autoConnect method
Browse files Browse the repository at this point in the history
Remove private `autoConnect` method from Pera wallet implementations since the
functionality is now handled directly in resumeSession.
  • Loading branch information
drichar committed Dec 7, 2024
1 parent 1709fb0 commit afc11e6
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions packages/use-wallet/src/wallets/pera.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,6 @@ export class PeraWallet extends BaseWallet {
icon: ICON
}

private async autoConnect(): Promise<void> {
this.logger.info('Pera Discover browser detected, auto connecting...')
try {
await this.connect()
this.logger.info('Auto-connect successful')
} catch (error: any) {
this.logger.warn('Auto-connect failed:', error.message)
}
}

private async initializeClient(): Promise<PeraWalletConnect> {
this.logger.info('Initializing client...')
const module = await import('@perawallet/connect')
Expand Down

0 comments on commit afc11e6

Please sign in to comment.