mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-25 15:55:18 +00:00
fix CLI tests
This commit is contained in:
parent
5ccd4e219f
commit
aa9e943609
@ -642,9 +642,14 @@ func TestKvCLISubmitParamChangeProposal(t *testing.T) {
|
|||||||
"value": 105
|
"value": 105
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"deposit": "%sstake"
|
"deposit": [
|
||||||
|
{
|
||||||
|
"denom": "%s",
|
||||||
|
"amount": "%s"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
`, proposalTokens.String())
|
`, sdk.DefaultBondDenom, proposalTokens.String())
|
||||||
|
|
||||||
proposalFile := WriteToNewTempFile(t, proposal)
|
proposalFile := WriteToNewTempFile(t, proposal)
|
||||||
|
|
||||||
@ -715,10 +720,20 @@ func TestKvCLISubmitCommunityPoolSpendProposal(t *testing.T) {
|
|||||||
"title": "Community Pool Spend",
|
"title": "Community Pool Spend",
|
||||||
"description": "Spend from community pool",
|
"description": "Spend from community pool",
|
||||||
"recipient": "%s",
|
"recipient": "%s",
|
||||||
"amount": "1%s",
|
"amount": [
|
||||||
"deposit": "%s%s"
|
{
|
||||||
|
"denom": "%s",
|
||||||
|
"amount": "1"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"deposit": [
|
||||||
|
{
|
||||||
|
"denom": "%s",
|
||||||
|
"amount": "%s"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
`, fooAddr, sdk.DefaultBondDenom, proposalTokens.String(), sdk.DefaultBondDenom)
|
`, fooAddr, sdk.DefaultBondDenom, sdk.DefaultBondDenom, proposalTokens.String())
|
||||||
proposalFile := WriteToNewTempFile(t, proposal)
|
proposalFile := WriteToNewTempFile(t, proposal)
|
||||||
|
|
||||||
// create the param change proposal
|
// create the param change proposal
|
||||||
|
Loading…
Reference in New Issue
Block a user