mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 12:29:51 +00:00
fix: catch error in newly added fetchTransactions call (#2265)
fix: null handling in cw_monero
This commit is contained in:
parent
ca8dbf3c81
commit
40084ec532
2 changed files with 12 additions and 6 deletions
|
@ -139,16 +139,16 @@ String getAddress({int accountIndex = 0, int addressIndex = 0}) {
|
|||
}
|
||||
|
||||
int getFullBalance({int accountIndex = 0}) =>
|
||||
currentWallet!.balance(accountIndex: accountIndex);
|
||||
currentWallet?.balance(accountIndex: accountIndex) ?? 0;
|
||||
|
||||
int getUnlockedBalance({int accountIndex = 0}) =>
|
||||
currentWallet!.unlockedBalance(accountIndex: accountIndex);
|
||||
currentWallet?.unlockedBalance(accountIndex: accountIndex) ?? 0;
|
||||
|
||||
int getCurrentHeight() => currentWallet!.blockChainHeight();
|
||||
int getCurrentHeight() => currentWallet?.blockChainHeight() ?? 0;
|
||||
|
||||
int getNodeHeightSync() => currentWallet!.daemonBlockChainHeight();
|
||||
int getNodeHeightSync() => currentWallet?.daemonBlockChainHeight() ?? 0;
|
||||
|
||||
bool isConnectedSync() => currentWallet!.connected() != 0;
|
||||
bool isConnectedSync() => currentWallet?.connected() != 0;
|
||||
|
||||
Future<bool> setupNodeSync(
|
||||
{required String address,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue