Skip to content

Commit

Permalink
chore: fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kien6034 committed Nov 13, 2024
1 parent 005cf95 commit dd27d60
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/upgrades/v4_2_6/upgrade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,9 @@ func (s *UpgradeTestSuite) MockBankBalances() {
sdk.NewCoin(v4.Denom, math.NewInt(MockDeadContractBalance)),
)

// Replace FundAccount with BankKeeper's MintCoins and SendCoinsFromModuleToAccount
// Mint coins to the dead contract
err := s.App.BankKeeper.MintCoins(s.Ctx, "mint", coins)
s.Require().NoError(err)

err = s.App.BankKeeper.SendCoinsFromModuleToAccount(s.Ctx, "mint", deadContractAddr, coins)
s.Require().NoError(err)

Expand All @@ -59,7 +58,7 @@ func (s *UpgradeTestSuite) TestUpgrade() {
contractBalance := s.App.BankKeeper.GetAllBalances(s.Ctx, deadContractAddr)
s.Require().Equal(int64(0), contractBalance.AmountOf(v4.Denom).Int64())

// Foundation balance get drained
// Foundation balance is increased
foundationAddr := sdk.MustAccAddressFromBech32(v4.Foundation)
foundationBalance := s.App.BankKeeper.GetAllBalances(s.Ctx, foundationAddr)
s.T().Logf("balance: %v", foundationBalance)
Expand Down

0 comments on commit dd27d60

Please sign in to comment.