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 } )] ]