mirror of
https://github.com/bigchaindb/js-bigchaindb-driver.git
synced 2024-06-30 21:52:11 +02:00
Merge branch 'output-index' into combine
This commit is contained in:
commit
0a400550a3
|
@ -83,7 +83,7 @@ new Connection(PATH).listTransactions(assetId, operation)
|
||||||
|
|
||||||
```js
|
```js
|
||||||
// new
|
// new
|
||||||
new Connection(PATH).searchAsset(search)
|
new Connection(PATH).searchAssets(search)
|
||||||
```
|
```
|
||||||
|
|
||||||
A querying interface to text-search all assets in BigchainDB. For more
|
A querying interface to text-search all assets in BigchainDB. For more
|
||||||
|
|
|
@ -33,7 +33,7 @@ export default function makeTransferTransaction(
|
||||||
const inputs = outputIndices.map((outputIndex) => {
|
const inputs = outputIndices.map((outputIndex) => {
|
||||||
const fulfilledOutput = unspentTransaction.outputs[outputIndex]
|
const fulfilledOutput = unspentTransaction.outputs[outputIndex]
|
||||||
const transactionLink = {
|
const transactionLink = {
|
||||||
'output': outputIndex,
|
'output_index': outputIndex,
|
||||||
'transaction_id': unspentTransaction.id,
|
'transaction_id': unspentTransaction.id,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -85,7 +85,7 @@ test('Create TRANSFER transaction based on CREATE transaction', t => {
|
||||||
[aliceOutput],
|
[aliceOutput],
|
||||||
[makeInputTemplate(
|
[makeInputTemplate(
|
||||||
[alice.publicKey],
|
[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],
|
[aliceOutput],
|
||||||
[makeInputTemplate(
|
[makeInputTemplate(
|
||||||
[alice.publicKey],
|
[alice.publicKey],
|
||||||
{ output: 0, transaction_id: transferTx.id }
|
{ output_index: 0, transaction_id: transferTx.id }
|
||||||
)]
|
)]
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user