@binance-chain/bsc-ledger-bridge-keyring
Advanced tools
Comparing version 0.2.11 to 0.2.12
14
index.js
@@ -213,3 +213,3 @@ const { EventEmitter } = require('events') | ||
// For personal_sign, we need to prefix the message: | ||
signPersonalMessage (withAccount, message) { | ||
signPersonalMessage (withAccount, message, accountIndex = 0) { | ||
return new Promise((resolve, reject) => { | ||
@@ -219,13 +219,3 @@ this.unlock().then((_) => { | ||
if (this._isBIP44()) { | ||
const checksummedAddress = ethUtil.toChecksumAddress(withAccount) | ||
if (!Object.keys(this.accountIndexes).includes(checksummedAddress)) { | ||
reject( | ||
new Error( | ||
`Ledger: Index for address '${checksummedAddress}' not found`, | ||
), | ||
) | ||
} | ||
hdPath = this._getPathForIndex( | ||
this.accountIndexes[checksummedAddress], | ||
) | ||
hdPath = this._getPathForIndex(accountIndex) | ||
} else { | ||
@@ -232,0 +222,0 @@ hdPath = this._toLedgerPath(this._pathFromAddress(withAccount)) |
{ | ||
"name": "@binance-chain/bsc-ledger-bridge-keyring", | ||
"version": "0.2.11", | ||
"version": "0.2.12", | ||
"description": "A MetaMask compatible keyring, for ledger hardware wallets", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14195
408