Skip to content

Commit afc11e6

Browse files
committed
refactor(pera): remove unused autoConnect method
Remove private `autoConnect` method from Pera wallet implementations since the functionality is now handled directly in resumeSession.
1 parent 1709fb0 commit afc11e6

File tree

1 file changed

+0
-10
lines changed
  • packages/use-wallet/src/wallets

1 file changed

+0
-10
lines changed

packages/use-wallet/src/wallets/pera.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,6 @@ export class PeraWallet extends BaseWallet {
5151
icon: ICON
5252
}
5353

54-
private async autoConnect(): Promise<void> {
55-
this.logger.info('Pera Discover browser detected, auto connecting...')
56-
try {
57-
await this.connect()
58-
this.logger.info('Auto-connect successful')
59-
} catch (error: any) {
60-
this.logger.warn('Auto-connect failed:', error.message)
61-
}
62-
}
63-
6454
private async initializeClient(): Promise<PeraWalletConnect> {
6555
this.logger.info('Initializing client...')
6656
const module = await import('@perawallet/connect')

0 commit comments

Comments
 (0)