fix CLI tests

This commit is contained in:
Federico Kunze 2020-04-30 09:13:23 -04:00
parent 5ccd4e219f
commit aa9e943609
No known key found for this signature in database
GPG Key ID: 655F93A970080A30

View File

@ -642,9 +642,14 @@ func TestKvCLISubmitParamChangeProposal(t *testing.T) {
"value": 105
}
],
"deposit": "%sstake"
"deposit": [
{
"denom": "%s",
"amount": "%s"
}
`, proposalTokens.String())
]
}
`, sdk.DefaultBondDenom, proposalTokens.String())
proposalFile := WriteToNewTempFile(t, proposal)
@ -715,10 +720,20 @@ func TestKvCLISubmitCommunityPoolSpendProposal(t *testing.T) {
"title": "Community Pool Spend",
"description": "Spend from community pool",
"recipient": "%s",
"amount": "1%s",
"deposit": "%s%s"
"amount": [
{
"denom": "%s",
"amount": "1"
}
`, fooAddr, sdk.DefaultBondDenom, proposalTokens.String(), sdk.DefaultBondDenom)
],
"deposit": [
{
"denom": "%s",
"amount": "%s"
}
]
}
`, fooAddr, sdk.DefaultBondDenom, sdk.DefaultBondDenom, proposalTokens.String())
proposalFile := WriteToNewTempFile(t, proposal)
// create the param change proposal