1
0
mirror of https://github.com/bigchaindb/js-bigchaindb-driver.git synced 2024-11-22 09:46:58 +01:00

fulfills.output -> fulfills.output_index

This commit is contained in:
Scott Sadler 2017-06-29 11:40:29 +02:00 committed by Tim Daubenschütz
parent f82706ecbb
commit b665752c8c
2 changed files with 3 additions and 3 deletions

View File

@ -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,
}

View File

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