mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-03-28 01:58:56 +00:00
minor fix [skip ci]
This commit is contained in:
parent
e56dd1256d
commit
be4e0d6ac8
3 changed files with 3 additions and 3 deletions
|
@ -121,7 +121,7 @@ class PolygonWallet extends EVMChainWallet {
|
|||
if (!hasKeysFile) rethrow;
|
||||
}
|
||||
|
||||
final balance = EVMChainERC20Balance.fromJSON(data?['balance'] as String) ??
|
||||
final balance = EVMChainERC20Balance.fromJSON(data?['balance'] as String?) ??
|
||||
EVMChainERC20Balance(BigInt.zero);
|
||||
|
||||
final WalletKeysData keysData;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -144,7 +144,7 @@ abstract class TronWalletBase
|
|||
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;
|
||||
// Migrate wallet from the old scheme to then new .keys file scheme
|
||||
|
|
Loading…
Reference in a new issue