From d2d56aae92d878cd44b680344051365d68b2ec48 Mon Sep 17 00:00:00 2001 From: dudong2 Date: Mon, 15 Jan 2024 17:34:11 +0900 Subject: [PATCH] chore: rename log and import --- rpc/namespaces/ethereum/eth/filters/api.go | 4 ++-- x/evm/types/msg.go | 8 ++++---- x/feemarket/types/msg.go | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/rpc/namespaces/ethereum/eth/filters/api.go b/rpc/namespaces/ethereum/eth/filters/api.go index be03d4832a..17483ea81b 100644 --- a/rpc/namespaces/ethereum/eth/filters/api.go +++ b/rpc/namespaces/ethereum/eth/filters/api.go @@ -352,7 +352,7 @@ func (api *PublicFilterAPI) NewHeads(ctx context.Context) (*rpc.Subscription, er data, ok := ev.Data.(tmtypes.EventDataNewBlockEvents) if !ok { - api.logger.Debug("event data type mismatch", "type", fmt.Sprintf("%T", ev.Data)) + api.logger.Debug("EventDataNewBlockEvents type mismatch", "type", fmt.Sprintf("%T", ev.Data)) continue } @@ -360,7 +360,7 @@ func (api *PublicFilterAPI) NewHeads(ctx context.Context) (*rpc.Subscription, er data1, ok := ev.Data.(tmtypes.EventDataNewBlockHeader) if !ok { - api.logger.Debug("event data type mismatch", "type", fmt.Sprintf("%T", ev.Data)) + api.logger.Debug("EventDataNewBlockHeader type mismatch", "type", fmt.Sprintf("%T", ev.Data)) continue } diff --git a/x/evm/types/msg.go b/x/evm/types/msg.go index c3c0aa57de..225f776559 100644 --- a/x/evm/types/msg.go +++ b/x/evm/types/msg.go @@ -34,7 +34,7 @@ import ( "github.com/cosmos/cosmos-sdk/x/auth/ante" authsigning "github.com/cosmos/cosmos-sdk/x/auth/signing" authtx "github.com/cosmos/cosmos-sdk/x/auth/tx" - evmv1 "github.com/evmos/ethermint/api/ethermint/evm/v1" + evmapi "github.com/evmos/ethermint/api/ethermint/evm/v1" "github.com/evmos/ethermint/types" @@ -225,7 +225,7 @@ func (msg *MsgEthereumTx) GetMsgs() []sdk.Msg { } func (msg *MsgEthereumTx) GetMsgsV2() ([]protov2.Message, error) { - m := evmv1.MsgEthereumTx{ + m := evmapi.MsgEthereumTx{ Data: &anypb.Any{ TypeUrl: msg.Data.TypeUrl, Value: msg.Data.Value, @@ -484,7 +484,7 @@ func GetSignersFromMsgEthereumTxV2(msg protov2.Message) ([][]byte, error) { } func GetMsgEthereumTxFromMsgV2(msg protov2.Message) (MsgEthereumTx, error) { - msgv2, ok := msg.(*evmv1.MsgEthereumTx) + msgv2, ok := msg.(*evmapi.MsgEthereumTx) if !ok { return MsgEthereumTx{}, nil } @@ -520,7 +520,7 @@ func GetMsgEthereumTxFromMsgV2(msg protov2.Message) (MsgEthereumTx, error) { } func GetSignersFromMsgUpdateParamsV2(msg protov2.Message) ([][]byte, error) { - msgv2, ok := msg.(*evmv1.MsgUpdateParams) + msgv2, ok := msg.(*evmapi.MsgUpdateParams) if !ok { return nil, nil } diff --git a/x/feemarket/types/msg.go b/x/feemarket/types/msg.go index 5a23260aae..8df877ef33 100644 --- a/x/feemarket/types/msg.go +++ b/x/feemarket/types/msg.go @@ -5,7 +5,7 @@ import ( errorsmod "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" - feemarketv1 "github.com/evmos/ethermint/api/ethermint/feemarket/v1" + feemarketapi "github.com/evmos/ethermint/api/ethermint/feemarket/v1" ) var _ sdk.Msg = &MsgUpdateParams{} @@ -31,7 +31,7 @@ func (m MsgUpdateParams) GetSignBytes() []byte { } func GetSignersFromMsgUpdateParamsV2(msg protov2.Message) ([][]byte, error) { - msgv2, ok := msg.(*feemarketv1.MsgUpdateParams) + msgv2, ok := msg.(*feemarketapi.MsgUpdateParams) if !ok { return nil, nil }