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

@ -121,7 +121,7 @@ class PolygonWallet extends EVMChainWallet {
if (!hasKeysFile) rethrow; if (!hasKeysFile) rethrow;
} }
final balance = EVMChainERC20Balance.fromJSON(data?['balance'] as String) ?? final balance = EVMChainERC20Balance.fromJSON(data?['balance'] as String?) ??
EVMChainERC20Balance(BigInt.zero); EVMChainERC20Balance(BigInt.zero);
final WalletKeysData keysData; final WalletKeysData keysData;

View file

@ -407,7 +407,7 @@ abstract class SolanaWalletBase
if (!hasKeysFile) rethrow; 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; final WalletKeysData keysData;
// Migrate wallet from the old scheme to then new .keys file scheme // Migrate wallet from the old scheme to then new .keys file scheme

View file

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