From afc11e61619d2261fbf4cdde3d33f3ca07a1d8f2 Mon Sep 17 00:00:00 2001 From: Doug Richar Date: Fri, 6 Dec 2024 22:47:02 -0500 Subject: [PATCH] refactor(pera): remove unused autoConnect method Remove private `autoConnect` method from Pera wallet implementations since the functionality is now handled directly in resumeSession. --- packages/use-wallet/src/wallets/pera.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/packages/use-wallet/src/wallets/pera.ts b/packages/use-wallet/src/wallets/pera.ts index dea4d13f..b1322896 100644 --- a/packages/use-wallet/src/wallets/pera.ts +++ b/packages/use-wallet/src/wallets/pera.ts @@ -51,16 +51,6 @@ export class PeraWallet extends BaseWallet { icon: ICON } - private async autoConnect(): Promise { - 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 { this.logger.info('Initializing client...') const module = await import('@perawallet/connect')