mirror of
https://github.com/retoaccess1/haveno-reto.git
synced 2024-09-20 12:56:21 +02:00
persist payment account on creation to fix null accountName
This commit is contained in:
parent
d1d6576986
commit
7509a80895
@ -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 New Issue
Block a user