Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
natebeauregard committed Aug 12, 2024
1 parent 7e5375a commit 3976d85
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions x/rollup/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package keeper

import (
"context"
sdkmath "cosmossdk.io/math"
"encoding/json"
"fmt"

sdkmath "cosmossdk.io/math"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"github.com/ethereum/go-ethereum/common"
Expand Down Expand Up @@ -183,7 +184,7 @@ func (k *Keeper) setL1BlockHistory(ctx context.Context, info *derive.L1BlockInfo
}

// processL1SystemDepositTx processes the L1 system deposit tx and returns the L1 block info.
func (k *Keeper) processL1SystemDepositTx(ctx sdk.Context, txBytes []byte) (*derive.L1BlockInfo, error) {
func (k *Keeper) processL1SystemDepositTx(ctx sdk.Context, txBytes []byte) (*derive.L1BlockInfo, error) { //nolint:gocritic // hugeParam
var tx ethtypes.Transaction
if err := tx.UnmarshalBinary(txBytes); err != nil {
ctx.Logger().Error("Failed to unmarshal system deposit transaction", "index", 0, "err", err, "txBytes", txBytes)
Expand All @@ -202,7 +203,7 @@ func (k *Keeper) processL1SystemDepositTx(ctx sdk.Context, txBytes []byte) (*der
}

// processL1UserDepositTxs processes the L1 user deposit txs and mints ETH to the user's cosmos address.
func (k *Keeper) processL1UserDepositTxs(ctx sdk.Context, txs [][]byte) error {
func (k *Keeper) processL1UserDepositTxs(ctx sdk.Context, txs [][]byte) error { //nolint:gocritic // hugeParam
for i := 1; i < len(txs); i++ {
txBytes := txs[i]
var tx ethtypes.Transaction
Expand Down

0 comments on commit 3976d85

Please sign in to comment.