mirror of
https://github.com/boldsuck/haveno.git
synced 2025-01-22 15:54:31 +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");
|
if (paymentAccount.getAccountName() == null) throw new IllegalStateException("Account name cannot be null");
|
||||||
user.addPaymentAccount(paymentAccount);
|
user.addPaymentAccount(paymentAccount);
|
||||||
|
paymentAccount.onPersistChanges();
|
||||||
|
|
||||||
if (!(paymentAccount instanceof AssetAccount))
|
if (!(paymentAccount instanceof AssetAccount))
|
||||||
accountAgeWitnessService.publishMyAccountAgeWitness(paymentAccount.getPaymentAccountPayload());
|
accountAgeWitnessService.publishMyAccountAgeWitness(paymentAccount.getPaymentAccountPayload());
|
||||||
|
|
|
@ -127,6 +127,7 @@ class TraditionalAccountsDataModel extends ActivatableDataModel {
|
||||||
}
|
}
|
||||||
|
|
||||||
user.addPaymentAccount(paymentAccount);
|
user.addPaymentAccount(paymentAccount);
|
||||||
|
paymentAccount.onPersistChanges();
|
||||||
|
|
||||||
accountAgeWitnessService.publishMyAccountAgeWitness(paymentAccount.getPaymentAccountPayload());
|
accountAgeWitnessService.publishMyAccountAgeWitness(paymentAccount.getPaymentAccountPayload());
|
||||||
accountAgeWitnessService.signAndPublishSameNameAccounts();
|
accountAgeWitnessService.signAndPublishSameNameAccounts();
|
||||||
|
|
Loading…
Reference in a new issue