Skip to content

Commit

Permalink
chore: rename log and import
Browse files Browse the repository at this point in the history
  • Loading branch information
dudong2 committed Jan 15, 2024
1 parent 56597b2 commit d2d56aa
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions rpc/namespaces/ethereum/eth/filters/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -352,15 +352,15 @@ 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
}

baseFee := types.BaseFeeFromEvents(data.Events)

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
}

Expand Down
8 changes: 4 additions & 4 deletions x/evm/types/msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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
}
Expand Down Expand Up @@ -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
}
Expand Down
4 changes: 2 additions & 2 deletions x/feemarket/types/msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand All @@ -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
}
Expand Down

0 comments on commit d2d56aa

Please sign in to comment.