minor fix [skip ci]

This commit is contained in:
OmarHatem 2025-03-09 00:59:55 +02:00
parent e56dd1256d
commit be4e0d6ac8
3 changed files with 3 additions and 3 deletions

View file

@ -407,7 +407,7 @@ abstract class SolanaWalletBase
if (!hasKeysFile) rethrow;
}
final balance = SolanaBalance.fromJSON(data?['balance'] as String) ?? SolanaBalance(0.0);
final balance = SolanaBalance.fromJSON(data?['balance'] as String?) ?? SolanaBalance(0.0);
final WalletKeysData keysData;
// Migrate wallet from the old scheme to then new .keys file scheme