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

js tutorial

This commit is contained in:
diminator 2017-02-16 18:37:01 +01:00
parent b894386132
commit f436896d96

View File

@ -109,7 +109,6 @@ 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,