Skip to content

Commit 3fd8f7e

Browse files
author
manolodewiner
committed
add suport to sign with single or array of private keys
1 parent 21eb6a0 commit 3fd8f7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/transaction.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ export default class Transaction {
236236
Transaction.serializeTransactionIntoCanonicalString(transaction)
237237

238238
signedTx.inputs.forEach((input, index) => {
239-
const privateKey = privateKeys[index]
239+
const privateKey = privateKeys[index] ? privateKeys[index] : privateKeys[0]
240240
const privateKeyBuffer = Buffer.from(base58.decode(privateKey))
241241

242242
const transactionUniqueFulfillment = input.fulfills ? serializedTransaction

0 commit comments

Comments
 (0)