Skip to content

Commit

Permalink
docs: Update outdated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
drklee3 committed Sep 18, 2024
1 parent 8054e8b commit 015f13d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions app/ante/fee_checker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func (suite *AnteTestSuite) CreateTestAccounts(
}

// TestDeductFees tests the full AnteHandler flow with the DeductFeeDecorator
// using the custom TxFeeChecker
// using the default TxFeeChecker
func TestDeductFees(t *testing.T) {
tests := []struct {
name string
Expand Down Expand Up @@ -283,7 +283,12 @@ func TestDeductFees(t *testing.T) {
// NOTE: Transaction is not signed, as it is not checked for this test.
tx := txBuilder.GetTx()

dfd := ante.NewDeductFeeDecorator(s.accountKeeper, s.bankKeeper, nil, nil)
dfd := ante.NewDeductFeeDecorator(
s.accountKeeper,
s.bankKeeper,
nil, // feegrant keeper - unused
nil, // TxFeeChecker func - nil for default
)
antehandler := sdk.ChainAnteDecorators(dfd)

_, err := antehandler(s.ctx, tx, false)
Expand Down

0 comments on commit 015f13d

Please sign in to comment.