From 52d9e0b5c3478e9a2d190eff8df2ef53982a4491 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Mon, 17 Feb 2020 12:57:33 +0100 Subject: [PATCH] Convert function to function --- packages/sdk/src/cosmwasmclient.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/sdk/src/cosmwasmclient.ts b/packages/sdk/src/cosmwasmclient.ts index b74be3f0..1a31b4bf 100644 --- a/packages/sdk/src/cosmwasmclient.ts +++ b/packages/sdk/src/cosmwasmclient.ts @@ -23,25 +23,25 @@ export interface FeeTable { readonly send: StdFee; } -const feeAmount = (amount: number, denom: string): readonly Coin[] => [ - { amount: amount.toString(), denom: denom }, -]; +function singleAmount(amount: number, denom: string): readonly Coin[] { + return [{ amount: amount.toString(), denom: denom }]; +} const defaultFeeTable: FeeTable = { upload: { - amount: feeAmount(25000, "ucosm"), + amount: singleAmount(25000, "ucosm"), gas: "1000000", // one million }, init: { - amount: feeAmount(12500, "ucosm"), + amount: singleAmount(12500, "ucosm"), gas: "500000", // 500k }, exec: { - amount: feeAmount(5000, "ucosm"), + amount: singleAmount(5000, "ucosm"), gas: "200000", // 200k }, send: { - amount: feeAmount(2000, "ucosm"), + amount: singleAmount(2000, "ucosm"), gas: "80000", // 80k }, };