mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-03-22 23:28:53 +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) {
|
bool needExportOutputs(int amount) {
|
||||||
// printV("viewOnlyBalance: ${monero.Wallet_viewOnlyBalance(wptr!, accountIndex: walletAddresses.account!.id)}");
|
// viewOnlyBalance - balance that we can spend
|
||||||
// printV(" balance: ${monero.Wallet_balance(wptr!, accountIndex: walletAddresses.account!.id)}");
|
// TODO(mrcyjanek): remove hasUnknownKeyImages when we cleanup coin control
|
||||||
return monero.Wallet_hasUnknownKeyImages(wptr!) ||
|
return (monero.Wallet_viewOnlyBalance(wptr!,
|
||||||
(monero.Wallet_viewOnlyBalance(wptr!,
|
accountIndex: walletAddresses.account!.id) < amount) ||
|
||||||
accountIndex: walletAddresses.account!.id) < amount);
|
monero.Wallet_hasUnknownKeyImages(wptr!);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
|
@ -422,7 +422,7 @@ class SendPage extends BasePage {
|
||||||
await Navigator.of(context).pushNamed(Routes.urqrAnimatedPage, arguments: 'export-outputs');
|
await Navigator.of(context).pushNamed(Routes.urqrAnimatedPage, arguments: 'export-outputs');
|
||||||
}
|
}
|
||||||
if (monero!.needExportOutputs(sendViewModel.wallet, amount)) {
|
if (monero!.needExportOutputs(sendViewModel.wallet, amount)) {
|
||||||
throw Exception("You need to export outputs first");
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue