From edaab8db2eb84fa7427c32898f7141299234f62a Mon Sep 17 00:00:00 2001 From: Erlend <49862976+Erb3@users.noreply.github.com> Date: Tue, 6 Jun 2023 21:56:42 +0200 Subject: [PATCH] refactor: Remove unneeded argument --- src/app.ts | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/src/app.ts b/src/app.ts index 255276d..9dfb072 100644 --- a/src/app.ts +++ b/src/app.ts @@ -20,8 +20,7 @@ async function transfer( kws: kwsClient, to: string, amount: number, - from: string, - format: KristWalletFormatName | undefined + from: string ) { if (!amount) return; logger.info(`Sending krist to ${to} worth ${amount}`); @@ -71,24 +70,12 @@ async function main() { const split = splits[tx.to]; if (typeof split.outputs === "string") { - await transfer( - kristWS, - split.outputs, - tx.value, - split.privatekey, - split.walletFormat - ); + await transfer(kristWS, split.outputs, tx.value, split.privatekey); } else { const toTransfer = calculateOutputs(split.outputs, tx.value); Object.keys(toTransfer).forEach(async (address) => { const value = toTransfer[address]; - await transfer( - kristWS, - address, - value, - split.privatekey, - split.walletFormat - ); + await transfer(kristWS, address, value, split.privatekey); }); } });