cosmwasm-stargate: Fix test env checks

This commit is contained in:
willclarktech
2021-01-07 10:53:33 +00:00
parent d7ab3c5ba4
commit 01e0648f57
2 changed files with 5 additions and 0 deletions
@@ -42,6 +42,7 @@ interface HackatomInstance {
describe("CosmWasmClient", () => {
describe("connect", () => {
it("can be constructed", async () => {
pendingWithoutWasmd();
const client = await CosmWasmClient.connect(wasmd.endpoint);
expect(client).toBeTruthy();
});
@@ -27,12 +27,14 @@ const { Tx } = codec.cosmos.tx.v1beta1;
describe("SigningCosmWasmClient", () => {
describe("connectWithWallet", () => {
it("can be constructed", async () => {
pendingWithoutWasmd();
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(alice.mnemonic, undefined, wasmd.prefix);
const client = await SigningCosmWasmClient.connectWithWallet(wasmd.endpoint, wallet);
expect(client).toBeTruthy();
});
it("can be constructed with custom gas price", async () => {
pendingWithoutWasmd();
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(alice.mnemonic, undefined, wasmd.prefix);
const gasPrice = GasPrice.fromString("3.14utest");
const client = await SigningCosmWasmClient.connectWithWallet(wasmd.endpoint, wallet, { gasPrice });
@@ -66,6 +68,7 @@ describe("SigningCosmWasmClient", () => {
});
it("can be constructed with custom gas limits", async () => {
pendingWithoutWasmd();
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(alice.mnemonic, undefined, wasmd.prefix);
const gasLimits = {
send: 160000,
@@ -101,6 +104,7 @@ describe("SigningCosmWasmClient", () => {
});
it("can be constructed with custom gas price and gas limits", async () => {
pendingWithoutWasmd();
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(alice.mnemonic, undefined, wasmd.prefix);
const gasPrice = GasPrice.fromString("3.14utest");
const gasLimits = {