Skip to content

Commit

Permalink
Merge branch 'main' into resolver-revolver
Browse files Browse the repository at this point in the history
  • Loading branch information
0xDaedalus authored Apr 10, 2022
2 parents c3c68b9 + 36cf5d9 commit 0372a87
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions background/services/ledger/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ type Events = ServiceLifecycleEvents & {
usbDeviceCount: number
}

export const idDerviationPath = "44'/60'/0'/0/0"
export const idDerivationPath = "44'/60'/0'/0/0"

async function deriveAddressOnLedger(path: string, eth: Eth) {
const derivedIdentifiers = await eth.getAddress(path)
Expand Down Expand Up @@ -112,7 +112,7 @@ async function generateLedgerId(
return [undefined, extensionDeviceType]
}

const address = await deriveAddressOnLedger(idDerviationPath, eth)
const address = await deriveAddressOnLedger(idDerivationPath, eth)

return [address, extensionDeviceType]
}
Expand Down Expand Up @@ -203,7 +203,7 @@ export default class LedgerService extends BaseService<Events> {
this.emitter.emit("ledgerAdded", {
id: this.#currentLedgerId,
type,
accountIDs: [idDerviationPath],
accountIDs: [idDerivationPath],
metadata: {
ethereumVersion: appData.version,
isArbitraryDataSigningEnabled: appData.arbitraryDataEnabled !== 0,
Expand Down

0 comments on commit 0372a87

Please sign in to comment.