From b665752c8c6abc5a8ca3286ca23261a16d59d562 Mon Sep 17 00:00:00 2001 From: Scott Sadler Date: Thu, 29 Jun 2017 11:40:29 +0200 Subject: [PATCH] fulfills.output -> fulfills.output_index --- src/transaction/makeTransferTransaction.js | 2 +- test/transaction/test_transaction.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/transaction/makeTransferTransaction.js b/src/transaction/makeTransferTransaction.js index 6e9207f..8272b2c 100644 --- a/src/transaction/makeTransferTransaction.js +++ b/src/transaction/makeTransferTransaction.js @@ -33,7 +33,7 @@ export default function makeTransferTransaction( const inputs = outputIndices.map((outputIndex) => { const fulfilledOutput = unspentTransaction.outputs[outputIndex] const transactionLink = { - 'output': outputIndex, + 'output_index': outputIndex, 'transaction_id': unspentTransaction.id, } diff --git a/test/transaction/test_transaction.js b/test/transaction/test_transaction.js index 407bb55..d5a28ed 100644 --- a/test/transaction/test_transaction.js +++ b/test/transaction/test_transaction.js @@ -85,7 +85,7 @@ test('Create TRANSFER transaction based on CREATE transaction', t => { [aliceOutput], [makeInputTemplate( [alice.publicKey], - { output: 0, transaction_id: createTx.id } + { output_index: 0, transaction_id: createTx.id } )] ] @@ -113,7 +113,7 @@ test('Create TRANSFER transaction based on TRANSFER transaction', t => { [aliceOutput], [makeInputTemplate( [alice.publicKey], - { output: 0, transaction_id: transferTx.id } + { output_index: 0, transaction_id: transferTx.id } )] ]