Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuang committed Jun 26, 2024
1 parent 99bc965 commit 659cdf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/mempool/sender_nonce.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,13 @@ func (snm *SenderNonceMempool) InsertWithGasWanted(_ context.Context, tx sdk.Tx,
return nil
}

func (mp *SenderNonceMempool) Insert(ctx context.Context, tx sdk.Tx) error {
func (snm *SenderNonceMempool) Insert(ctx context.Context, tx sdk.Tx) error {
var gasLimit uint64
if gasTx, ok := tx.(GasTx); ok {
gasLimit = gasTx.GetGas()
}

return mp.InsertWithGasWanted(ctx, tx, gasLimit)
return snm.InsertWithGasWanted(ctx, tx, gasLimit)
}

// Select returns an iterator ordering transactions the mempool with the lowest
Expand Down

0 comments on commit 659cdf6

Please sign in to comment.