You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -195,11 +195,11 @@ class AccountViewPageState extends ConsumerState<AccountViewPage> {
195
195
voidonUpdateAllTxPrices() async {
196
196
final confirmed =
197
197
awaitconfirmDialog(context, title:"Fetch Tx Market Price", message:"Do you want to retrieve historical ZEC prices for your past transactions?");
198
-
if (confirmed) awaitfillMissingTxPrices();
198
+
if (confirmed) awaitfillMissingTxPrices(c: c);
199
199
}
200
200
201
201
voidonExport(int index) async {
202
-
final data =awaitgetExportedData(type: index);
202
+
final data =awaitgetExportedData(type: index, c: c);
203
203
final filename =awaitsaveFile(data: utf8.encode(data));
204
204
if (!mounted) return;
205
205
if (filename !=null) awaitshowMessage(context, "$filename Saved");
@@ -230,6 +230,7 @@ class AccountEditPageState extends ConsumerState<AccountEditPage> with RouteAwar
230
230
final resetID =GlobalKey(debugLabel:"resetID");
231
231
final folderID =GlobalKey(debugLabel:"folderID");
232
232
233
+
latefinal c = ref.read(coinContextProvider);
233
234
lateList<Account> accounts = widget.accounts;
234
235
final formKey =GlobalKey<FormBuilderState>(debugLabel:"formKey");
235
236
List<Folder>? folders;
@@ -404,6 +405,7 @@ class AccountEditPageState extends ConsumerState<AccountEditPage> with RouteAwar
404
405
name: name,
405
406
folder: accounts[0].folder.id,
406
407
),
408
+
c: c,
407
409
);
408
410
ref.invalidate(getAccountsProvider);
409
411
ref.invalidate(accountProvider(accounts[0].id));
@@ -434,6 +436,7 @@ class AccountEditPageState extends ConsumerState<AccountEditPage> with RouteAwar
434
436
icon: bytes,
435
437
folder: accounts[0].folder.id,
436
438
),
439
+
c: c,
437
440
);
438
441
ref.invalidate(accountProvider(accounts[0].id));
439
442
setState(() {});
@@ -450,6 +453,7 @@ class AccountEditPageState extends ConsumerState<AccountEditPage> with RouteAwar
450
453
birth:int.parse(birth),
451
454
folder: accounts[0].folder.id,
452
455
),
456
+
c: c,
453
457
);
454
458
ref.invalidate(accountProvider(accounts[0].id));
455
459
setState(() {});
@@ -467,6 +471,7 @@ class AccountEditPageState extends ConsumerState<AccountEditPage> with RouteAwar
467
471
enabled: v,
468
472
folder: accounts[i].folder.id,
469
473
),
474
+
c: c,
470
475
);
471
476
ref.invalidate(accountProvider(accounts[i].id));
472
477
}
@@ -484,6 +489,7 @@ class AccountEditPageState extends ConsumerState<AccountEditPage> with RouteAwar
484
489
hidden: v,
485
490
folder: accounts[i].folder.id,
486
491
),
492
+
c: c,
487
493
);
488
494
ref.invalidate(accountProvider(accounts[i].id));
489
495
}
@@ -501,6 +507,7 @@ class AccountEditPageState extends ConsumerState<AccountEditPage> with RouteAwar
501
507
id: accounts[i].id,
502
508
folder: v,
503
509
),
510
+
c: c,
504
511
);
505
512
ref.invalidate(accountProvider(accounts[i].id));
506
513
}
@@ -511,7 +518,7 @@ class AccountEditPageState extends ConsumerState<AccountEditPage> with RouteAwar
511
518
final account = accounts.first;
512
519
final password =awaitinputPassword(context, title:"Export Account", message:"File Password", repeated:true, required:true);
513
520
if (password !=null) {
514
-
final res =awaitexportAccount(id: account.id, passphrase: password);
521
+
final res =awaitexportAccount(id: account.id, passphrase: password, c: c);
515
522
awaitsaveFile(title:"Please select an output file for the encrypted account:", fileName:"${account.name}.bin", data: res);
516
523
}
517
524
}
@@ -525,9 +532,9 @@ class AccountEditPageState extends ConsumerState<AccountEditPage> with RouteAwar
525
532
"Are you sure you want to rewind this account? This will rollback the account to a previous height. You will not lose any funds, but you will need to resync the account",
0 commit comments