mirror of
https://github.com/boldsuck/haveno.git
synced 2025-01-22 07:44:33 +00:00
persist payment account on creation to fix null accountName
This commit is contained in:
parent
d1d6576986
commit
7509a80895
2 changed files with 2 additions and 0 deletions
|
@ -121,6 +121,7 @@ class CryptoAccountsDataModel extends ActivatableDataModel {
|
|||
|
||||
if (paymentAccount.getAccountName() == null) throw new IllegalStateException("Account name cannot be null");
|
||||
user.addPaymentAccount(paymentAccount);
|
||||
paymentAccount.onPersistChanges();
|
||||
|
||||
if (!(paymentAccount instanceof AssetAccount))
|
||||
accountAgeWitnessService.publishMyAccountAgeWitness(paymentAccount.getPaymentAccountPayload());
|
||||
|
|
|
@ -127,6 +127,7 @@ class TraditionalAccountsDataModel extends ActivatableDataModel {
|
|||
}
|
||||
|
||||
user.addPaymentAccount(paymentAccount);
|
||||
paymentAccount.onPersistChanges();
|
||||
|
||||
accountAgeWitnessService.publishMyAccountAgeWitness(paymentAccount.getPaymentAccountPayload());
|
||||
accountAgeWitnessService.signAndPublishSameNameAccounts();
|
||||
|
|
Loading…
Reference in a new issue