1
0
mirror of https://github.com/bigchaindb/js-bigchaindb-driver.git synced 2025-02-14 21:10:32 +01:00

Use rest params in fn definition

This commit is contained in:
tim 2017-06-20 11:03:01 +02:00
parent ed18384b82
commit 9183205f04
2 changed files with 3 additions and 8 deletions

View File

@ -54,11 +54,6 @@ export function _makeTransferTransaction(
// - Rename `fulfilledOutputs`, e.g. inputs // - Rename `fulfilledOutputs`, e.g. inputs
// TODO: `outputs` should throw or include output in array if no array was // TODO: `outputs` should throw or include output in array if no array was
// passed // passed
export default function makeTransferTransaction( export default function makeTransferTransaction(...args) {
unspentTransaction, return makeTransaction(..._makeTransferTransaction(...args))
metadata,
outputs,
...fulfilledOutputs
) {
return makeTransaction(..._makeTransferTransaction(...arguments))
} }

View File

@ -86,7 +86,7 @@ test('Create TRANSFER transaction based on CREATE transaction', t => {
) )
const expected = [ const expected = [
'TRANSFER', 'TRANSFER',
{id: createTx.id }, { id: createTx.id },
metaDataMessage, metaDataMessage,
[aliceOutput], [aliceOutput],
[makeInputTemplate( [makeInputTemplate(