From e21a3cea84d0e492d8e3fc32f460d1e1b39a2d47 Mon Sep 17 00:00:00 2001 From: cdc-Hitesh Date: Fri, 2 Jul 2021 16:51:49 +0530 Subject: [PATCH] #281: Bug fix --- .../msg/v2/gov/proposal/v2.CommunityPoolSpendProposal.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/transaction/msg/v2/gov/proposal/v2.CommunityPoolSpendProposal.ts b/lib/src/transaction/msg/v2/gov/proposal/v2.CommunityPoolSpendProposal.ts index b509ed73..9eb3be58 100644 --- a/lib/src/transaction/msg/v2/gov/proposal/v2.CommunityPoolSpendProposal.ts +++ b/lib/src/transaction/msg/v2/gov/proposal/v2.CommunityPoolSpendProposal.ts @@ -65,7 +65,7 @@ export const communityPoolSpendProposalV2 = function (config: InitConfigurations `Expected ${COSMOS_MSG_TYPEURL.upgrade.CommunityPoolSpendProposal} but got ${parsedMsg['@type']}`, ); } - if (!parsedMsg.amount || parsedMsg.amount.length !== 1) { + if (!parsedMsg.amount || parsedMsg.amount.length < 1) { throw new Error('Invalid amount in the Msg.'); } const cro = CroSDK({ network });