launchpad: Add default fees to SigningCosmosClient construction test

This commit is contained in:
willclarktech 2020-08-18 16:47:36 +01:00
parent 914f8d94bb
commit e4767ed2e2
No known key found for this signature in database
GPG Key ID: 551A86E2E398ADF7

View File

@ -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 () => {