tentative fix for evm wallet creation issue after backup restore (#3316)

This commit is contained in:
David Adegoke
2026-06-09 00:01:44 +02:00
committed by GitHub
parent 879eb9193c
commit f462f0a2d7
2 changed files with 20 additions and 5 deletions
@@ -132,7 +132,10 @@ abstract class WalletKitServiceBase with Store {
debugPrint('Intializing walletKit');
if (!isInitialized) {
try {
await _walletKit.init();
await _walletKit.init().timeout(
const Duration(seconds: 8),
onTimeout: () => throw TimeoutException('walletKit init timed out'),
);
debugPrint('Initialized');
isInitialized = true;
} catch (e) {
@@ -206,7 +209,7 @@ abstract class WalletKitServiceBase with Store {
name: 'accountsChanged',
data: [chain.publicKey],
),
);
).timeout(const Duration(seconds: 3));
}
} on ReownSignError catch (e) {
if (e.code == 6) {