diff --git a/src/utils/accounts.ts b/src/utils/accounts.ts index aebbf8f..3d3213b 100644 --- a/src/utils/accounts.ts +++ b/src/utils/accounts.ts @@ -86,7 +86,9 @@ const addAccount = async (network: string): Promise => { try { const id = await getNextAccountId(network); const hdPath = getHDPath(network, `0'/0/${id}`); - return addAccountFromHDPath(hdPath); + const accounts = await addAccountFromHDPath(hdPath); + await updateAccountIndices(network, id); + return accounts; } catch (error) { console.error('Error creating account:', error); }