Skip to content

Commit

Permalink
chore(kyring-eth-ledger-bridge): add more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ccharly committed Oct 1, 2024
1 parent f916f75 commit b405a4e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/keyring-eth-ledger-bridge/src/ledger-keyring.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@ export class LedgerKeyring extends EventEmitter {
return this.bridge.destroy();
}

async serialize(): Promise<Partial<LedgerBridgeKeyringOptions>> {
async serialize(): Promise<
Partial<LedgerBridgeKeyringOptions> // Maybe we should have a proper "state" type here instead of using this "options" type.
> {
return {
hdPath: this.hdPath,
accounts: this.accounts,
Expand All @@ -134,7 +136,7 @@ export class LedgerKeyring extends EventEmitter {
}

async deserialize(
opts: Partial<LedgerBridgeKeyringOptions> = {},
opts: Partial<LedgerBridgeKeyringOptions> = {}, // Same question here?
): Promise<void> {
this.hdPath = opts.hdPath ?? hdPathString;
this.accounts = opts.accounts ?? [];
Expand Down

0 comments on commit b405a4e

Please sign in to comment.