@binance-chain/bsc-ledger-bridge-keyring
Advanced tools
Comparing version 0.2.9 to 0.2.11
@@ -162,3 +162,3 @@ const { EventEmitter } = require('events') | ||
// tx is an instance of the ethereumjs-transaction class. | ||
signTransaction (address, tx) { | ||
signTransaction (address, tx, accountIndex = 0) { | ||
return new Promise((resolve, reject) => { | ||
@@ -172,3 +172,3 @@ this.unlock().then((_) => { | ||
if (this._isBIP44()) { | ||
hdPath = this._getPathForIndex(0) | ||
hdPath = this._getPathForIndex(accountIndex) | ||
} else { | ||
@@ -205,3 +205,3 @@ hdPath = this._toLedgerPath(this._pathFromAddress(address)) | ||
}).catch((err) => { | ||
reject(err) | ||
throw err | ||
}) | ||
@@ -208,0 +208,0 @@ }) |
{ | ||
"name": "@binance-chain/bsc-ledger-bridge-keyring", | ||
"version": "0.2.9", | ||
"version": "0.2.11", | ||
"description": "A MetaMask compatible keyring, for ledger hardware wallets", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
14552