mirror of
https://github.com/bigchaindb/js-bigchaindb-driver.git
synced 2024-12-28 15:47:50 +01:00
Use rest params in fn definition
This commit is contained in:
parent
ed18384b82
commit
9183205f04
@ -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))
|
||||
}
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user