From e7bd0a8d07542fd66066f56386d4abd0b350e7e6 Mon Sep 17 00:00:00 2001 From: mmsqe Date: Thu, 6 Jul 2023 09:28:13 +0800 Subject: [PATCH 1/4] add missing getFeePayer for clienttypes --- relayer/chains/cosmos/log.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/relayer/chains/cosmos/log.go b/relayer/chains/cosmos/log.go index 75e43a982..ac71b2525 100644 --- a/relayer/chains/cosmos/log.go +++ b/relayer/chains/cosmos/log.go @@ -154,6 +154,10 @@ func getFeePayer(tx *typestx.Tx) string { case *clienttypes.MsgUpdateClient: // Same failure mode as MsgCreateClient. return firstMsg.Signer + case *clienttypes.MsgUpgradeClient: + return firstMsg.Signer + case *clienttypes.MsgSubmitMisbehaviour: + return firstMsg.Signer default: return firstMsg.GetSigners()[0].String() } From fb3db43212032ac92012784b0509a7846faeeb9c Mon Sep 17 00:00:00 2001 From: mmsqe Date: Thu, 6 Jul 2023 09:28:19 +0800 Subject: [PATCH 2/4] add missing getFeePayer for feetypes --- relayer/chains/cosmos/log.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/relayer/chains/cosmos/log.go b/relayer/chains/cosmos/log.go index ac71b2525..791a5d89c 100644 --- a/relayer/chains/cosmos/log.go +++ b/relayer/chains/cosmos/log.go @@ -6,6 +6,7 @@ import ( "github.com/cosmos/cosmos-sdk/codec/types" sdk "github.com/cosmos/cosmos-sdk/types" typestx "github.com/cosmos/cosmos-sdk/types/tx" + feetypes "github.com/cosmos/ibc-go/v7/modules/apps/29-fee/types" transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" clienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" "github.com/cosmos/relayer/v2/relayer/provider" @@ -158,6 +159,14 @@ func getFeePayer(tx *typestx.Tx) string { return firstMsg.Signer case *clienttypes.MsgSubmitMisbehaviour: return firstMsg.Signer + case *feetypes.MsgRegisterPayee: + return firstMsg.Relayer + case *feetypes.MsgRegisterCounterpartyPayee: + return firstMsg.Relayer + case *feetypes.MsgPayPacketFee: + return firstMsg.Signer + case *feetypes.MsgPayPacketFeeAsync: + return firstMsg.PacketFee.RefundAddress default: return firstMsg.GetSigners()[0].String() } From 71aaec59cd04205d7500480282b85b0881589e5d Mon Sep 17 00:00:00 2001 From: mmsqe Date: Thu, 6 Jul 2023 09:43:29 +0800 Subject: [PATCH 3/4] apply in penumbra --- relayer/chains/penumbra/log.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/relayer/chains/penumbra/log.go b/relayer/chains/penumbra/log.go index 3c4661cc5..b1f110cf0 100644 --- a/relayer/chains/penumbra/log.go +++ b/relayer/chains/penumbra/log.go @@ -6,6 +6,7 @@ import ( "github.com/cosmos/cosmos-sdk/codec/types" sdk "github.com/cosmos/cosmos-sdk/types" typestx "github.com/cosmos/cosmos-sdk/types/tx" + feetypes "github.com/cosmos/ibc-go/v7/modules/apps/29-fee/types" transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" clienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" "github.com/cosmos/relayer/v2/relayer/provider" @@ -151,6 +152,18 @@ func getFeePayer(tx *typestx.Tx) string { case *clienttypes.MsgUpdateClient: // Same failure mode as MsgCreateClient. return firstMsg.Signer + case *clienttypes.MsgUpgradeClient: + return firstMsg.Signer + case *clienttypes.MsgSubmitMisbehaviour: + return firstMsg.Signer + case *feetypes.MsgRegisterPayee: + return firstMsg.Relayer + case *feetypes.MsgRegisterCounterpartyPayee: + return firstMsg.Relayer + case *feetypes.MsgPayPacketFee: + return firstMsg.Signer + case *feetypes.MsgPayPacketFeeAsync: + return firstMsg.PacketFee.RefundAddress default: return firstMsg.GetSigners()[0].String() } From 23507e151f660658fd4de2ab63078c44bf201761 Mon Sep 17 00:00:00 2001 From: mmsqe Date: Thu, 6 Jul 2023 09:44:28 +0800 Subject: [PATCH 4/4] add change doc --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index dddbca7fb..4ed6f23d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ * [\#1179](https://github.com/cosmos/relayer/pull/1179) Add extension-options parameter in chain configs and update SDK to v0.47.3. * [\#1208](https://github.com/cosmos/relayer/pull/1208) Replace gogo/protobuf to cosmos/gogoproto. * [\#1221](https://github.com/cosmos/relayer/pull/1221) Update cometbft to v0.37.2 and ibc-go to v7.2.0. +* [\#1231](https://github.com/cosmos/relayer/pull/1231) Reduce get bech32 prefix when get signer. ## v0.9.3