Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aljo242 committed Nov 9, 2023
1 parent f0a006c commit c84c9a7
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions feemarket/plugins/mock/feemarket.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,33 +12,33 @@ var _ feemarket.FeeMarket = FeeMarket{}
type FeeMarket struct{}

// Init which initializes the fee market (in InitGenesis)
func (fm FeeMarket) Init(ctx sdk.Context) error {
func (fm FeeMarket) Init(_ sdk.Context) error {
return nil
}

// EndBlockUpdateHandler allows the fee market to be updated
// after every block. This will be added to the EndBlock chain.
func (fm FeeMarket) EndBlockUpdateHandler(ctx sdk.Context) feemarket.UpdateHandler {
func (fm FeeMarket) EndBlockUpdateHandler(_ sdk.Context) feemarket.UpdateHandler {
return nil
}

// EpochUpdateHandler allows the fee market to be updated
// after every given epoch identifier. This maps the epoch
// identifier to the UpdateHandler that should be executed.
func (fm FeeMarket) EpochUpdateHandler(ctx sdk.Context) map[string]feemarket.UpdateHandler {
func (fm FeeMarket) EpochUpdateHandler(_ sdk.Context) map[string]feemarket.UpdateHandler {
return nil
}

// GetMinGasPrice retrieves the minimum gas price(s) needed
// to be included in the block for the given transaction
func (fm FeeMarket) GetMinGasPrice(ctx sdk.Context, tx sdk.Tx) sdk.Coins {
func (fm FeeMarket) GetMinGasPrice(_ sdk.Context, _ sdk.Tx) sdk.Coins {
return sdk.NewCoins()
}

// GetFeeMarketInfo retrieves the fee market's information about
// how to pay for a transaction (min gas price, min tip,
// where the fees are being distributed, etc.).
func (fm FeeMarket) GetFeeMarketInfo(ctx sdk.Context) map[string]string {
func (fm FeeMarket) GetFeeMarketInfo(_ sdk.Context) map[string]string {
return nil
}

Expand All @@ -50,26 +50,26 @@ func (fm FeeMarket) GetID() string {
// FeeAnteHandler will be called in the module AnteHandler.
// Performs no actions.
func (fm FeeMarket) FeeAnteHandler(
ctx sdk.Context,
tx sdk.Tx,
simulate bool,
_ sdk.Context,
_ sdk.Tx,
_ bool,
next sdk.AnteHandler,
) sdk.AnteHandler {
return func(ctx sdk.Context, tx sdk.Tx, simulate bool) (newCtx sdk.Context, err error) {
return ctx, nil
return next(ctx, tx, simulate)
}
}

// FeePostHandler will be called in the module PostHandler
// if PostHandlers are implemented. Performs no actions.
func (fm FeeMarket) FeePostHandler(
ctx sdk.Context,
tx sdk.Tx,
simulate,
success bool,
_ sdk.Context,
_ sdk.Tx,
_,
_ bool,
next sdk.PostHandler,
) sdk.PostHandler {
return func(ctx sdk.Context, tx sdk.Tx, simulate, success bool) (newCtx sdk.Context, err error) {
return ctx, nil
return next(ctx, tx, simulate, success)
}
}

0 comments on commit c84c9a7

Please sign in to comment.