mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-18 16:55:58 +00:00
properly annotate function as an action so it updates the observables [skip ci]
This commit is contained in:
parent
0293330035
commit
97dfc311dc
1 changed files with 3 additions and 0 deletions
|
@ -91,8 +91,10 @@ abstract class LightningInvoicePageViewModelBase with Store {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
print("CREATING INVOICE");
|
||||||
String bolt11 =
|
String bolt11 =
|
||||||
await lightningViewModel.createInvoice(amountSats: amount, description: description);
|
await lightningViewModel.createInvoice(amountSats: amount, description: description);
|
||||||
|
print("CREATED INVOICE");
|
||||||
state = ExecutedSuccessfullyState(payload: bolt11);
|
state = ExecutedSuccessfullyState(payload: bolt11);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
state = FailureState(e.toString());
|
state = FailureState(e.toString());
|
||||||
|
@ -108,6 +110,7 @@ abstract class LightningInvoicePageViewModelBase with Store {
|
||||||
amount = inputAmount;
|
amount = inputAmount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@action
|
||||||
Future<void> _fetchLimits() async {
|
Future<void> _fetchLimits() async {
|
||||||
final limits = await lightningViewModel.invoiceSoftLimitsSats();
|
final limits = await lightningViewModel.invoiceSoftLimitsSats();
|
||||||
minimum = limits.minFee.toDouble();
|
minimum = limits.minFee.toDouble();
|
||||||
|
|
Loading…
Reference in a new issue