1
0
mirror of https://github.com/bigchaindb/js-bigchaindb-driver.git synced 2024-11-22 09:46:58 +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
// TODO: `outputs` should throw or include output in array if no array was
// passed
export default function makeTransferTransaction(
unspentTransaction,
metadata,
outputs,
...fulfilledOutputs
) {
return makeTransaction(..._makeTransferTransaction(...arguments))
export default function makeTransferTransaction(...args) {
return makeTransaction(..._makeTransferTransaction(...args))
}

View File

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