Skip to content

Commit 170e62e

Browse files
committed
fix gci errors
1 parent 98d63b2 commit 170e62e

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

x/globalfee/ante/antetest/fee_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,8 @@ func (s *IntegrationTestSuite) TestBypassGasCapNotEnforced() {
634634
// Create tx with gas that exceeds the bypass cap
635635
s.txBuilder.SetGasLimit(50_000) // exceeds cap of 1,000
636636
s.txBuilder.SetFeeAmount(sdk.NewCoins()) // zero fees
637-
s.txBuilder.SetMsgs() // empty messages = bypass
637+
err := s.txBuilder.SetMsgs() // empty messages = bypass
638+
s.Require().NoError(err)
638639

639640
priv1, _, _ := testdata.KeyTestPubAddr()
640641
privs, accNums, accSeqs := []cryptotypes.PrivKey{priv1}, []uint64{0}, []uint64{0}
@@ -670,7 +671,8 @@ func (s *IntegrationTestSuite) TestBypassFeeDenomValidation() {
670671
// Create tx with disallowed fee denom
671672
s.txBuilder.SetGasLimit(10_000)
672673
s.txBuilder.SetFeeAmount(sdk.NewCoins(sdk.NewCoin("uatom", math.NewInt(1)))) // disallowed denom
673-
s.txBuilder.SetMsgs() // empty messages = bypass
674+
err := s.txBuilder.SetMsgs() // empty messages = bypass
675+
s.Require().NoError(err)
674676

675677
priv1, _, _ := testdata.KeyTestPubAddr()
676678
privs, accNums, accSeqs := []cryptotypes.PrivKey{priv1}, []uint64{0}, []uint64{0}

x/globalfee/ante/fee.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func (mfd FeeDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, ne
7070
gasLimit,
7171
)
7272
}
73-
73+
7474
// Validate fee denominations for bypass messages if fees are provided
7575
feeCoins := feeTx.GetFee()
7676
if !feeCoins.IsZero() {
@@ -79,7 +79,7 @@ func (mfd FeeDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, ne
7979
if err != nil {
8080
return ctx, err
8181
}
82-
82+
8383
// Only validate fee denominations if global fees are configured
8484
// If global fees are empty/default, allow any fee denomination for bypass messages
8585
if !globalFees.IsZero() {
@@ -103,7 +103,7 @@ func (mfd FeeDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, ne
103103
}
104104
}
105105
}
106-
106+
107107
return next(ctx, tx, simulate)
108108
}
109109

0 commit comments

Comments
 (0)