From b7c768baee6c19f2abc57c79dea614bd1df8b2d5 Mon Sep 17 00:00:00 2001 From: Jake Naviasky Date: Fri, 13 Sep 2024 13:17:51 -0400 Subject: [PATCH] Hotfix for govgen proposal loading. --- .../client/scripts/controllers/chain/cosmos/gov/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/commonwealth/client/scripts/controllers/chain/cosmos/gov/utils.ts b/packages/commonwealth/client/scripts/controllers/chain/cosmos/gov/utils.ts index f090d0db008..79e98dd4ace 100644 --- a/packages/commonwealth/client/scripts/controllers/chain/cosmos/gov/utils.ts +++ b/packages/commonwealth/client/scripts/controllers/chain/cosmos/gov/utils.ts @@ -25,7 +25,7 @@ export const getCompletedProposals = async ( const { chain, accounts, governance, meta } = cosmosChain; console.log(cosmosChain); const isGovgen = - meta.ChainNode?.cosmos_gov_version === + meta.ChainNode?.cosmosGovernanceVersion === CosmosGovernanceVersion.v1beta1govgen; const isV1 = meta.ChainNode?.cosmosGovernanceVersion === CosmosGovernanceVersion.v1; @@ -79,7 +79,7 @@ export const getActiveProposals = async ( ): Promise => { const { chain, accounts, governance, meta } = cosmosChain; const isGovgen = - meta.ChainNode?.cosmos_gov_version === + meta.ChainNode?.cosmosGovernanceVersion === CosmosGovernanceVersion.v1beta1govgen; const isV1 = meta.ChainNode?.cosmosGovernanceVersion === CosmosGovernanceVersion.v1;