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

Clarify 'aliceOutput' in docs

This commit is contained in:
Manolo 2018-01-18 11:35:02 +01:00 committed by GitHub
parent 2738f6bdef
commit c371e3bfad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,7 +62,8 @@ transaction should be now:
const createTranfer = BigchainDB.Transaction.makeTransferTransaction( const createTranfer = BigchainDB.Transaction.makeTransferTransaction(
[{ tx: txCreated, output_index: 0 }], [{ tx: txCreated, output_index: 0 }],
[aliceOutput], [BigchainDB.Transaction.makeOutput(
BigchainDB.Transaction.makeEd25519Condition(alice.publicKey))],
metaData metaData
) )
@ -80,7 +81,8 @@ transaction spending two outputs from two different create transactions:
const createTranfer = BigchainDB.Transaction.makeTransferTransaction( const createTranfer = BigchainDB.Transaction.makeTransferTransaction(
[{ tx: txCreated1, output_index: 0 }, [{ tx: txCreated1, output_index: 0 },
M{ tx: txCreated2, output_index: 0}], M{ tx: txCreated2, output_index: 0}],
[aliceOutput], [BigchainDB.Transaction.makeOutput(
BigchainDB.Transaction.makeEd25519Condition(alice.publicKey))],
metaData metaData
) )