test(sims): fix test cases feegrant (#19863)

Co-authored-by: son trinh <trinhleson2000@gmail.com>
This commit is contained in:
Emil Georgiev
2024-03-26 11:19:18 +00:00
committed by GitHub
co-authored by son trinh
parent 23723bef21
commit 6e9528a2f5
+2
View File
@@ -86,6 +86,8 @@ func (suite *SimTestSuite) getTestingAccounts(r *rand.Rand, n int) []simtypes.Ac
// add coins to the accounts
for _, account := range accounts {
acc := suite.accountKeeper.NewAccountWithAddress(suite.ctx, account.Address)
suite.accountKeeper.SetAccount(suite.ctx, acc)
err := banktestutil.FundAccount(suite.ctx, suite.bankKeeper, account.Address, initCoins)
suite.Require().NoError(err)
}