save wallet on fresh subaddress

This commit is contained in:
pokkst 2022-10-06 00:28:06 -05:00
parent 995e0be835
commit fd0f756975
No known key found for this signature in database
GPG Key ID: 90C2ED85E67A50FF

View File

@ -37,6 +37,7 @@ public class AddressService extends ServiceBase {
Wallet wallet = WalletManager.getInstance().getWallet(); Wallet wallet = WalletManager.getInstance().getWallet();
wallet.addSubaddress(wallet.getAccountIndex(), timeStamp); wallet.addSubaddress(wallet.getAccountIndex(), timeStamp);
refreshAddresses(); refreshAddresses();
wallet.store();
return wallet.getSubaddressObject(latestAddressIndex); return wallet.getSubaddressObject(latestAddressIndex);
} }