Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: ledger support #200

Merged
merged 9 commits into from
Oct 13, 2023
Merged

feat: ledger support #200

merged 9 commits into from
Oct 13, 2023

Conversation

lucasgabrielgsp
Copy link
Collaborator

  • implement ledger support

@@ -923,6 +959,86 @@ export class KeyringManager implements IKeyringManager {
return trezorAccount;
}

private async _createLedgerAccount(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
private async _createLedgerAccount(
private async createLedgerAccount(

index: +index,
slip44,
});
const accountAlreadyExists =
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest that each part of this can be one const and accountAlreadyExists is the or of those consts. This way is really hard to read this variable

);

const id =
Object.values(accounts[KeyringAccountType.Ledger]).length < 1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you create a const for this in line 991 you can reuse it here

@lucasgabrielgsp lucasgabrielgsp merged commit 933449d into main Oct 13, 2023
@leozera14 leozera14 deleted the feat/ledger-support branch November 10, 2023 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants