Skip to content

Commit 9209206

Browse files
committed
fix lint
1 parent dd48cad commit 9209206

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

rpc/backend/backend.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,11 @@ type EVMBackend interface {
125125
GetTransactionReceipt(hash common.Hash, resBlock *tmrpctypes.ResultBlock) (map[string]interface{}, error)
126126
GetTransactionByBlockHashAndIndex(hash common.Hash, idx hexutil.Uint) (*rpctypes.RPCTransaction, error)
127127
GetTransactionByBlockNumberAndIndex(blockNum rpctypes.BlockNumber, idx hexutil.Uint) (*rpctypes.RPCTransaction, error)
128-
CreateAccessList(args evmtypes.TransactionArgs, blockNrOrHash rpctypes.BlockNumberOrHash, overrides *json.RawMessage) (*rpctypes.AccessListResult, error)
128+
CreateAccessList(
129+
args evmtypes.TransactionArgs,
130+
blockNrOrHash rpctypes.BlockNumberOrHash,
131+
overrides *json.RawMessage,
132+
) (*rpctypes.AccessListResult, error)
129133

130134
// Send Transaction
131135
Resend(args evmtypes.TransactionArgs, gasPrice *hexutil.Big, gasLimit *hexutil.Uint64) (common.Hash, error)

rpc/backend/tx_info.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ package backend
1818
import (
1919
"encoding/json"
2020
"fmt"
21+
2122
"github.com/ethereum/go-ethereum/core/vm"
2223
"github.com/ethereum/go-ethereum/eth/tracers/logger"
2324
"github.com/ethereum/go-ethereum/params"
@@ -617,7 +618,11 @@ func (b *Backend) getAccessListExcludes(args evmtypes.TransactionArgs, blockNum
617618
// initAccessListTracer initializes the access list tracer for the transaction.
618619
// It sets the default call arguments and creates a new access list tracer.
619620
// If an access list is provided in args, it uses that instead of creating a new one.
620-
func (b *Backend) initAccessListTracer(args evmtypes.TransactionArgs, blockNum rpctypes.BlockNumber, addressesToExclude map[common.Address]struct{}) (*logger.AccessListTracer, *evmtypes.TransactionArgs, error) {
621+
func (b *Backend) initAccessListTracer(
622+
args evmtypes.TransactionArgs,
623+
blockNum rpctypes.BlockNumber,
624+
addressesToExclude map[common.Address]struct{},
625+
) (*logger.AccessListTracer, *evmtypes.TransactionArgs, error) {
621626
header, err := b.HeaderByNumber(blockNum)
622627
if err != nil {
623628
b.logger.Error("failed to get header by number", "error", err)

rpc/namespaces/ethereum/eth/api.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,11 @@ type EthereumAPI interface {
115115
FillTransaction(args evmtypes.TransactionArgs) (*rpctypes.SignTransactionResult, error)
116116
Resend(ctx context.Context, args evmtypes.TransactionArgs, gasPrice *hexutil.Big, gasLimit *hexutil.Uint64) (common.Hash, error)
117117
GetPendingTransactions() ([]*rpctypes.RPCTransaction, error)
118-
CreateAccessList(args evmtypes.TransactionArgs, blockNrOrHash rpctypes.BlockNumberOrHash, overrides *json.RawMessage) (*rpctypes.AccessListResult, error)
118+
CreateAccessList(
119+
args evmtypes.TransactionArgs,
120+
blockNrOrHash rpctypes.BlockNumberOrHash,
121+
overrides *json.RawMessage,
122+
) (*rpctypes.AccessListResult, error)
119123
// eth_signTransaction (on Ethereum.org)
120124
// eth_getCompilers (on Ethereum.org)
121125
// eth_compileSolidity (on Ethereum.org)

x/evm/types/tx_args.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ package types
1818
import (
1919
"errors"
2020
"fmt"
21-
"github.com/ethereum/go-ethereum/log"
2221
"math"
2322
"math/big"
2423

24+
"github.com/ethereum/go-ethereum/log"
25+
2526
"github.com/ethereum/go-ethereum/common"
2627
"github.com/ethereum/go-ethereum/common/hexutil"
2728
"github.com/ethereum/go-ethereum/core"

0 commit comments

Comments
 (0)