Skip to content

Commit 46d8e61

Browse files
author
tim
committed
Use rest params in fn definition
1 parent f209445 commit 46d8e61

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

src/transaction/makeTransferTransaction.js

+2-7
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,6 @@ export function _makeTransferTransaction(
5454
// - Rename `fulfilledOutputs`, e.g. inputs
5555
// TODO: `outputs` should throw or include output in array if no array was
5656
// passed
57-
export default function makeTransferTransaction(
58-
unspentTransaction,
59-
metadata,
60-
outputs,
61-
...fulfilledOutputs
62-
) {
63-
return makeTransaction(..._makeTransferTransaction(...arguments))
57+
export default function makeTransferTransaction(...args) {
58+
return makeTransaction(..._makeTransferTransaction(...args))
6459
}

test/transaction/test_transaction.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ test('Create TRANSFER transaction based on CREATE transaction', t => {
8686
)
8787
const expected = [
8888
'TRANSFER',
89-
{id: createTx.id },
89+
{ id: createTx.id },
9090
metaDataMessage,
9191
[aliceOutput],
9292
[makeInputTemplate(

0 commit comments

Comments
 (0)