From 3fd8f7e1bd8d490a7fd5cb4900cf2f1ac82376f9 Mon Sep 17 00:00:00 2001 From: manolodewiner Date: Wed, 5 Sep 2018 12:33:49 +0200 Subject: [PATCH 1/2] add suport to sign with single or array of private keys --- src/transaction.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transaction.js b/src/transaction.js index f28f70ac..88f821ea 100644 --- a/src/transaction.js +++ b/src/transaction.js @@ -236,7 +236,7 @@ export default class Transaction { Transaction.serializeTransactionIntoCanonicalString(transaction) signedTx.inputs.forEach((input, index) => { - const privateKey = privateKeys[index] + const privateKey = privateKeys[index] ? privateKeys[index] : privateKeys[0] const privateKeyBuffer = Buffer.from(base58.decode(privateKey)) const transactionUniqueFulfillment = input.fulfills ? serializedTransaction From f6a2bed9401fdb966b85d7557851a4fe2d143d42 Mon Sep 17 00:00:00 2001 From: manolodewiner Date: Mon, 17 Sep 2018 13:50:15 +0200 Subject: [PATCH 2/2] update tendermint version --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index eb6136bb..c9d152fb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -33,7 +33,7 @@ services: retries: 3 command: -l DEBUG start tendermint: - image: tendermint/tendermint:0.22.3 + image: tendermint/tendermint:0.22.8 # volumes: # - ./tmdata:/tendermint entrypoint: ''