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

revived on_the_record

This commit is contained in:
diminator 2017-02-16 10:20:52 +01:00
parent 6baa42b2f0
commit b894386132

View File

@ -109,6 +109,7 @@ export function makeCreateTransaction(asset, metadata, outputs, ...issuers) {
export function makeTransferTransaction(unspentTransaction, metadata, outputs, ...fulfilledOutputs) { export function makeTransferTransaction(unspentTransaction, metadata, outputs, ...fulfilledOutputs) {
const inputs = fulfilledOutputs.map((outputIndex) => { const inputs = fulfilledOutputs.map((outputIndex) => {
const fulfilledOutput = unspentTransaction.outputs[outputIndex]; const fulfilledOutput = unspentTransaction.outputs[outputIndex];
console.log(unspentTransaction, fulfilledOutput)
const transactionLink = { const transactionLink = {
'output': outputIndex, 'output': outputIndex,
'txid': unspentTransaction.id, 'txid': unspentTransaction.id,