@@ -18,7 +18,6 @@ import (
1818 cmtrpccore "github.com/cometbft/cometbft/rpc/core/types"
1919 cmttypes "github.com/cometbft/cometbft/types"
2020
21- "github.com/cosmos/evm/rpc/types/interfaces"
2221 evmtrace "github.com/cosmos/evm/trace"
2322 feemarkettypes "github.com/cosmos/evm/x/feemarket/types"
2423 evmtypes "github.com/cosmos/evm/x/vm/types"
@@ -31,15 +30,15 @@ import (
3130)
3231
3332// RawTxToEthTx returns a evm MsgEthereum transaction from raw tx bytes.
34- func RawTxToEthTx (clientCtx client.Context , txBz cmttypes.Tx ) ([]interfaces .IMsgEthereumTx , error ) {
33+ func RawTxToEthTx (clientCtx client.Context , txBz cmttypes.Tx ) ([]evmtypes .IMsgEthereumTx , error ) {
3534 tx , err := clientCtx .TxConfig .TxDecoder ()(txBz )
3635 if err != nil {
3736 return nil , errorsmod .Wrap (errortypes .ErrJSONUnmarshal , err .Error ())
3837 }
3938
40- ethTxs := make ([]interfaces .IMsgEthereumTx , len (tx .GetMsgs ()))
39+ ethTxs := make ([]evmtypes .IMsgEthereumTx , len (tx .GetMsgs ()))
4140 for i , msg := range tx .GetMsgs () {
42- ethTx , ok := msg .(interfaces .IMsgEthereumTx )
41+ ethTx , ok := msg .(evmtypes .IMsgEthereumTx )
4342 if ! ok {
4443 return nil , fmt .Errorf ("invalid message type %T, expected %T" , msg , & evmtypes.MsgEthereumTx {})
4544 }
@@ -153,7 +152,7 @@ func MakeHeader(
153152// NewTransactionFromMsg returns a transaction that will serialize to the RPC
154153// representation, with the given location metadata set (if available).
155154func NewTransactionFromMsg (
156- msg interfaces .IMsgEthereumTx ,
155+ msg evmtypes .IMsgEthereumTx ,
157156 blockHash common.Hash ,
158157 blockNumber , blockTime , index uint64 ,
159158 baseFee * big.Int ,
@@ -411,7 +410,7 @@ func RPCMarshalHeader(head *ethtypes.Header, blockHash []byte) map[string]interf
411410//
412411// This method refers to go-ethereum v1.16.3 internal package method - RPCMarshalBlock
413412// (https://github.com/ethereum/go-ethereum/blob/d818a9af7bd5919808df78f31580f59382c53150/internal/ethapi/api.go#L929-L962)
414- func RPCMarshalBlock (block * ethtypes.Block , cmtBlock * cmtrpccore.ResultBlock , msgs []interfaces .IMsgEthereumTx , inclTx bool , fullTx bool , config * ethparams.ChainConfig ) (map [string ]interface {}, error ) {
413+ func RPCMarshalBlock (block * ethtypes.Block , cmtBlock * cmtrpccore.ResultBlock , msgs []evmtypes .IMsgEthereumTx , inclTx bool , fullTx bool , config * ethparams.ChainConfig ) (map [string ]interface {}, error ) {
415414 blockHash := cmtBlock .BlockID .Hash .Bytes ()
416415 fields := RPCMarshalHeader (block .Header (), blockHash )
417416 fields ["size" ] = hexutil .Uint64 (block .Size ())
0 commit comments