forked from cerc-io/cosmos-explorer
commit
38dbaef1e7
@ -245,9 +245,7 @@ export async function getLedgerAddress(transport = 'blu', hdPath = "m/44'/118/0'
|
|||||||
const trans = transport === 'usb' ? await TransportWebUSB.create() : await TransportWebBLE.create()
|
const trans = transport === 'usb' ? await TransportWebUSB.create() : await TransportWebBLE.create()
|
||||||
// extract Cointype from from HDPath
|
// extract Cointype from from HDPath
|
||||||
const coinType = Number(stringToPath(hdPath)[1])
|
const coinType = Number(stringToPath(hdPath)[1])
|
||||||
|
|
||||||
const ledgerName = getLedgerAppName(coinType)
|
const ledgerName = getLedgerAppName(coinType)
|
||||||
|
|
||||||
const signer = new LedgerSigner(trans, { hdPaths: [stringToPath(hdPath)], ledgerAppName: ledgerName })
|
const signer = new LedgerSigner(trans, { hdPaths: [stringToPath(hdPath)], ledgerAppName: ledgerName })
|
||||||
return signer.getAccounts()
|
return signer.getAccounts()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user