Comment about code cleanup later

This commit is contained in:
Daniel Krol 2022-05-23 16:56:13 -04:00
parent 1dcb1d36a1
commit 1c8fc79f08

View file

@ -81,6 +81,11 @@ export class AccountService {
localStorage.setItem(AccountService.walletStorageKey, JSON.stringify(walletStore));
}
// TODO - PrivateAccountInfo should just contain a bip32 node and an
// "address" (account ID) that it generates when reading from storage. It
// wouldn't write these values back to storage, they're a function of the
// data already there. It would clean up the code by removing the need for
// bip32FromAccount, getAddress, and getAddressFromBip32.
public getAccounts(): PrivateAccountInfo[] {
const wallet = this.getWallet()
if (wallet === null) {