Skip to content

Commit e05e7bb

Browse files
refactor(wip): refactor profilemanager core module
1 parent 751df16 commit e05e7bb

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

packages/shared/lib/core/account/actions/buildAccountState.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export async function buildAccountState(
2727
potentiallyLockedOutputs: {},
2828
aliases: [],
2929
}
30-
const accountIndex = 0; // TODO: CHANGE THIS
30+
const accountIndex = 0; // TODO(2.0): CHANGE THIS
3131
let depositAddress = ''
3232
let votingPower = ''
3333
try {

packages/shared/lib/core/account/actions/buildAccountStateAndPersistedData.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export async function buildAccountStateAndPersistedData(
88
name?: string,
99
color?: string
1010
): Promise<[IAccountState, IPersistedAccountData]> {
11-
const index = 0; // TODO: CHANGE THIS
11+
const index = 0; // TODO(2.0): CHANGE THIS
1212
const persistedAccountData: IPersistedAccountData = {
1313
name: name || `${localize('general.account')} ${index + 1}`,
1414
color: color || getRandomAccountColor(),

packages/shared/lib/core/account/actions/createNewAccount.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ export async function createNewAccount(name?: string, color?: string): Promise<I
1414
alias: name || `${localize('general.account')} ${(get(activeAccounts)?.length ?? 0) + 1}`,
1515
})
1616

17+
// TODO(2.0): test & fix sync when we have iota2.0 nodes
1718
//await account.sync(DEFAULT_SYNC_OPTIONS)
18-
1919

2020
const [newAccount, accountPersistedData] = await buildAccountStateAndPersistedData(account, name, color)
21-
22-
const accountIndex = 0 // TODO: CHANGE THIS
23-
21+
22+
const accountIndex = 0 // TODO(2.0): CHANGE THIS
23+
2424
addAccountToActiveAccounts(newAccount)
2525
addAccountPersistedDataToActiveProfile(accountIndex, accountPersistedData)
2626
addEmptyAccountActivitiesToAllAccountActivities(accountIndex)
27-
27+
2828

2929
return newAccount
3030
}

0 commit comments

Comments
 (0)