From e4767ed2e207e5330fdcf586104b2b1173554074 Mon Sep 17 00:00:00 2001 From: willclarktech Date: Tue, 18 Aug 2020 16:47:36 +0100 Subject: [PATCH] launchpad: Add default fees to SigningCosmosClient construction test --- .../launchpad/src/signingcosmosclient.spec.ts | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/packages/launchpad/src/signingcosmosclient.spec.ts b/packages/launchpad/src/signingcosmosclient.spec.ts index b9b64d0f..6ab1c5e9 100644 --- a/packages/launchpad/src/signingcosmosclient.spec.ts +++ b/packages/launchpad/src/signingcosmosclient.spec.ts @@ -23,10 +23,21 @@ const faucet = { describe("SigningCosmosClient", () => { describe("makeReadOnly", () => { - it("can be constructed", async () => { + it("can be constructed with default fees", async () => { const wallet = await Secp256k1Wallet.fromMnemonic(faucet.mnemonic); const client = new SigningCosmosClient(httpUrl, faucet.address, wallet); - expect(client).toBeTruthy(); + const openedClient = (client as unknown) as PrivateSigningCosmosClient; + expect(openedClient.fees).toEqual({ + send: { + amount: [ + { + amount: "2000", + denom: "ucosm", + }, + ], + gas: "80000", + }, + }); }); it("can be constructed with custom gas price", async () => {