From bd67d4250aa46d46b9a8dbc1a44b5d27b11b5615 Mon Sep 17 00:00:00 2001 From: ValarDragon Date: Wed, 2 Mar 2022 18:43:56 -0800 Subject: [PATCH] Fix lint --- app/apptesting/test_suite.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/apptesting/test_suite.go b/app/apptesting/test_suite.go index 05d1b3e4047..44d96fc2a41 100644 --- a/app/apptesting/test_suite.go +++ b/app/apptesting/test_suite.go @@ -33,7 +33,8 @@ func SetupValidator(suite SuiteI, bondStatus stakingtypes.BondStatus) sdk.ValAdd bondDenom := suite.GetApp().StakingKeeper.GetParams(suite.GetCtx()).BondDenom selfBond := sdk.NewCoins(sdk.Coin{Amount: sdk.NewInt(100), Denom: bondDenom}) - simapp.FundAccount(suite.GetApp().BankKeeper, suite.GetCtx(), sdk.AccAddress(valAddr), selfBond) + err := simapp.FundAccount(suite.GetApp().BankKeeper, suite.GetCtx(), sdk.AccAddress(valAddr), selfBond) + suite.GetSuite().Require().NoError(err) sh := teststaking.NewHelper(suite.GetSuite().T(), suite.GetCtx(), *suite.GetApp().StakingKeeper) msg := sh.CreateValidatorMsg(valAddr, valPub, selfBond[0].Amount) sh.Handle(msg, true)