Skip to content

Commit

Permalink
#281: Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cdc-Hitesh committed Jul 2, 2021
1 parent a837279 commit e21a3ce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down

0 comments on commit e21a3ce

Please sign in to comment.