CAKE-310. CAKE-309. Bugs fixes. Changed way for save wallet after adding of new account/subaddress. Added App transport security rule for iOS. Changed version to 4.1.5.

This commit is contained in:
M
2021-04-14 11:54:12 +03:00
parent c8a521a29f
commit 5faf7f5cba
6 changed files with 35 additions and 21 deletions
-2
View File
@@ -100,10 +100,8 @@ abstract class MoneroWalletBase extends WalletBase<MoneroBalance> with Store {
Future<void> init() async {
accountList.update();
accountList.accounts.observe((_) async => await save());
account = accountList.accounts.first;
subaddressList.update(accountIndex: account.id ?? 0);
subaddressList.subaddresses.observe((_) async => await save());
subaddress = subaddressList.getAll().first;
balance = MoneroBalance(
fullBalance: monero_wallet.getFullBalance(accountIndex: account.id),