mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-05 10:29:23 +00:00
discussed changes
This commit is contained in:
parent
b722d2180c
commit
9951d15244
2 changed files with 6 additions and 6 deletions
|
@ -267,11 +267,11 @@ abstract class MoneroWalletBase extends WalletBase<MoneroBalance,
|
|||
}
|
||||
|
||||
bool needExportOutputs(int amount) {
|
||||
// printV("viewOnlyBalance: ${monero.Wallet_viewOnlyBalance(wptr!, accountIndex: walletAddresses.account!.id)}");
|
||||
// printV(" balance: ${monero.Wallet_balance(wptr!, accountIndex: walletAddresses.account!.id)}");
|
||||
return monero.Wallet_hasUnknownKeyImages(wptr!) ||
|
||||
(monero.Wallet_viewOnlyBalance(wptr!,
|
||||
accountIndex: walletAddresses.account!.id) < amount);
|
||||
// viewOnlyBalance - balance that we can spend
|
||||
// TODO(mrcyjanek): remove hasUnknownKeyImages when we cleanup coin control
|
||||
return (monero.Wallet_viewOnlyBalance(wptr!,
|
||||
accountIndex: walletAddresses.account!.id) < amount) ||
|
||||
monero.Wallet_hasUnknownKeyImages(wptr!);
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
|
@ -422,7 +422,7 @@ class SendPage extends BasePage {
|
|||
await Navigator.of(context).pushNamed(Routes.urqrAnimatedPage, arguments: 'export-outputs');
|
||||
}
|
||||
if (monero!.needExportOutputs(sendViewModel.wallet, amount)) {
|
||||
throw Exception("You need to export outputs first");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue