From 13de28ca4ba6200a70eea952aa9e722d731502db Mon Sep 17 00:00:00 2001 From: Christopher Goes Date: Tue, 21 May 2019 10:38:13 +0200 Subject: [PATCH] Fix testcase --- lcd_test/helpers_test.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lcd_test/helpers_test.go b/lcd_test/helpers_test.go index bdc7a4ab2b4..2ed871312f4 100644 --- a/lcd_test/helpers_test.go +++ b/lcd_test/helpers_test.go @@ -301,6 +301,14 @@ func InitializeTestLCD(t *testing.T, nValidators int, initAddrs []sdk.AccAddress accs = append(accs, acc) } + // distr data + distrDataBz := genesisState[distr.ModuleName] + var distrData distr.GenesisState + cdc.MustUnmarshalJSON(distrDataBz, &distrData) + distrData.FeePool.CommunityPool = sdk.DecCoins{sdk.DecCoin{"test", sdk.NewDecFromInt(sdk.NewInt(10))}} + distrDataBz = cdc.MustMarshalJSON(distrData) + genesisState[distr.ModuleName] = distrDataBz + // now add the account tokens to the non-bonded pool for _, acc := range accs { accTokens := acc.Coins.AmountOf(sdk.DefaultBondDenom) @@ -1240,7 +1248,7 @@ func doSubmitCommunityPoolSpendProposal( Proposer: proposerAddr, Recipient: proposerAddr, Deposit: sdk.Coins{sdk.NewCoin(sdk.DefaultBondDenom, amount)}, - Amount: sdk.Coins{sdk.NewCoin(sdk.DefaultBondDenom, amount)}, + Amount: sdk.Coins{sdk.NewCoin("test", sdk.NewInt(5))}, } req, err := cdc.MarshalJSON(pr)