Skip to content

Commit

Permalink
Merge pull request cosmos#17 from mmsqe/fix_log
Browse files Browse the repository at this point in the history
Problem: could not get signers for eth tx in log
  • Loading branch information
mmsqe committed May 14, 2024
2 parents 1dccb34 + 20b0bce commit 81aa743
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions relayer/chains/cosmos/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
clienttypes "github.com/cosmos/ibc-go/v8/modules/core/02-client/types"
chantypes "github.com/cosmos/ibc-go/v8/modules/core/04-channel/types"
"github.com/cosmos/relayer/v2/relayer/provider"
evmtypes "github.com/evmos/ethermint/x/evm/types"
"go.uber.org/zap"
"go.uber.org/zap/zapcore"
)
Expand Down Expand Up @@ -178,6 +179,8 @@ func getFeePayer(log *zap.Logger, cdc *codec.ProtoCodec, tx *typestx.Tx) string
return firstMsg.Signer
case *feetypes.MsgPayPacketFeeAsync:
return firstMsg.PacketFee.RefundAddress
case *evmtypes.MsgEthereumTx:
return sdk.AccAddress(firstMsg.From).String()
default:
signers, _, err := cdc.GetMsgV1Signers(firstMsg)
if err != nil {
Expand Down

0 comments on commit 81aa743

Please sign in to comment.