Skip to content

Commit

Permalink
docs: correct comments
Browse files Browse the repository at this point in the history
  • Loading branch information
fragwuerdig authored Mar 7, 2024
1 parent ca3fdef commit aa87018
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions custom/auth/ante/min_initial_deposit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (suite *AnteTestSuite) TestMinInitialDepositRatioDefault() {
txv1, err := suite.CreateTestTx(privs, accNums, accSeqs, suite.ctx.ChainID())
suite.Require().NoError(err)

// ante handler should not error for v1 proposal
// ante handler should not error for v1 proposal with sufficient deposit
_, err = antehandler(suite.ctx, txv1, false)
suite.Require().NoError(err, "error: v1 proposal whithout initial deposit should have gone through")
}
Expand Down Expand Up @@ -130,7 +130,7 @@ func (suite *AnteTestSuite) TestMinInitialDepositRatioWithSufficientDeposit() {
txv1, err := suite.CreateTestTx(privs, accNums, accSeqs, suite.ctx.ChainID())
suite.Require().NoError(err)

// ante handler should not error for v1 proposal
// ante handler should not error for v1 proposal with sufficient deposit
_, err = antehandler(suite.ctx, txv1, false)
suite.Require().NoError(err, "error: v1 proposal with sufficient initial deposit should have gone through")
}
Expand Down Expand Up @@ -172,7 +172,7 @@ func (suite *AnteTestSuite) TestMinInitialDepositRatioWithInsufficientDeposit()
tx, err := suite.CreateTestTx(privs, accNums, accSeqs, suite.ctx.ChainID())
suite.Require().NoError(err)

// antehandler should not error
// antehandler should error with insufficient deposit
_, err = antehandler(suite.ctx, tx, false)
suite.Require().Error(err, "error: Proposal with insufficient initial deposit should have failed")

Expand All @@ -187,7 +187,7 @@ func (suite *AnteTestSuite) TestMinInitialDepositRatioWithInsufficientDeposit()
txv1, err := suite.CreateTestTx(privs, accNums, accSeqs, suite.ctx.ChainID())
suite.Require().NoError(err)

// ante handler should not error for v1 proposal
// ante handler should error for v1 proposal with insufficient deposit
_, err = antehandler(suite.ctx, txv1, false)
suite.Require().Error(err, "error: v1 proposal with insufficient initial deposit should have failed")
}

0 comments on commit aa87018

Please sign in to comment.