diff --git a/packages/stargate/src/modules/authz/queries.spec.ts b/packages/stargate/src/modules/authz/queries.spec.ts index 3a322faf..efdff98f 100644 --- a/packages/stargate/src/modules/authz/queries.spec.ts +++ b/packages/stargate/src/modules/authz/queries.spec.ts @@ -12,7 +12,7 @@ import { faucet, makeRandomAddress, pendingWithoutSimapp, - pendingWithoutSimapp46, + pendingWithoutSimapp46OrHigher, simapp, simapp44Enabled, simapp46Enabled, @@ -105,7 +105,7 @@ describe("AuthzExtension", () => { describe("granter grants", () => { it("works", async () => { - pendingWithoutSimapp46(); + pendingWithoutSimapp46OrHigher(); const [client, tmClient] = await makeClientWithAuthz(simapp.tendermintUrl); const response = await client.authz.granterGrants(granter1Address); expect(response.grants.length).toEqual(1); @@ -133,7 +133,7 @@ describe("AuthzExtension", () => { describe("grantee grants", () => { it("works", async () => { - pendingWithoutSimapp46(); + pendingWithoutSimapp46OrHigher(); const [client, tmClient] = await makeClientWithAuthz(simapp.tendermintUrl); const response = await client.authz.granteeGrants(grantee1Address); expect(response.grants.length).toEqual(1); diff --git a/packages/stargate/src/modules/vesting/messages.spec.ts b/packages/stargate/src/modules/vesting/messages.spec.ts index bc1588d0..5754c410 100644 --- a/packages/stargate/src/modules/vesting/messages.spec.ts +++ b/packages/stargate/src/modules/vesting/messages.spec.ts @@ -10,7 +10,7 @@ import { faucet, makeRandomAddress, pendingWithoutSimapp, - pendingWithoutSimapp46, + pendingWithoutSimapp46OrHigher, simapp, } from "../../testutils.spec"; @@ -47,7 +47,7 @@ describe("vesting messages", () => { }); it("works with Amino JSON sign mode", async () => { - pendingWithoutSimapp46(); // Amino JSON broken on chain before Cosmos SDK 0.46 + pendingWithoutSimapp46OrHigher(); // Amino JSON broken on chain before Cosmos SDK 0.46 const wallet = await Secp256k1HdWallet.fromMnemonic(faucet.mnemonic); const client = await SigningStargateClient.connectWithSigner( simapp.tendermintUrl, diff --git a/packages/stargate/src/testutils.spec.ts b/packages/stargate/src/testutils.spec.ts index 9903a753..8e06b7db 100644 --- a/packages/stargate/src/testutils.spec.ts +++ b/packages/stargate/src/testutils.spec.ts @@ -31,9 +31,9 @@ export function simappEnabled(): boolean { return simapp44Enabled() || simapp46Enabled() || simapp47Enabled(); } -export function pendingWithoutSimapp46(): void { - if (!simapp46Enabled()) { - return pending("Set SIMAPP46_ENABLED to enable Simapp based tests"); +export function pendingWithoutSimapp46OrHigher(): void { + if (!simapp46Enabled() && !simapp47Enabled()) { + return pending("Set SIMAPP46_ENABLED or SIMAPP47_ENABLED to enable Simapp based tests"); } }