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 13:19:18 +02:00 committed by GitHub
parent 23723bef21
commit 6e9528a2f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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)
}