return account id on new private account creation

This commit is contained in:
Sergio Chouhy
2026-04-17 12:52:07 -03:00
parent a4e8b53817
commit f28ac0f092
5 changed files with 34 additions and 19 deletions
+1 -2
View File
@@ -147,7 +147,7 @@ impl WalletSubcommand for NewSubcommand {
anyhow::bail!("Label '{label}' is already in use by another account");
}
let chain_index = wallet_core.create_new_account_private(cci);
let (account_id, chain_index) = wallet_core.create_new_account_private(cci);
let node = wallet_core
.storage
@@ -157,7 +157,6 @@ impl WalletSubcommand for NewSubcommand {
.get(&chain_index)
.expect("Node was just inserted");
let key = &node.value.0;
let account_id = AccountId::from((&key.nullifier_public_key, 0_u128));
if let Some(label) = label {
wallet_core