1
0
mirror of https://github.com/bigchaindb/js-bigchaindb-driver.git synced 2024-11-25 11:28:37 +01:00

camelcase output_index

This commit is contained in:
Manolo 2017-12-19 15:17:10 +01:00 committed by GitHub
parent c169eb5d48
commit bc574c2b9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,10 +24,10 @@ export default function makeTransferTransaction(
metadata
) {
const inputs = unspentOutputs.map((unspentOutput) => {
const { tx, output_index } = unspentOutput
const fulfilledOutput = tx.outputs[output_index]
const { tx, outputIndex } = unspentOutput
const fulfilledOutput = tx.outputs[outputIndex]
const transactionLink = {
'output_index': output_index,
'output_index': outputIndex,
'transaction_id': tx.id,
}