From 6332587398643d20b4a1f0705944f35f1ad8f862 Mon Sep 17 00:00:00 2001 From: Roshan Date: Fri, 12 Jan 2024 10:19:27 +0800 Subject: [PATCH] fix: add missing tag of relayer fee in `handleMsgSideChainStakeMigration` --- x/stake/handler_sidechain.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/x/stake/handler_sidechain.go b/x/stake/handler_sidechain.go index 809edccf1..8cc518bad 100644 --- a/x/stake/handler_sidechain.go +++ b/x/stake/handler_sidechain.go @@ -571,7 +571,12 @@ func handleMsgSideChainStakeMigration(ctx sdk.Context, msg MsgSideChainStakeMigr tags.SrcValidator, []byte(msg.ValidatorSrcAddr.String()), tags.EndTime, finishTime, ) - txTags = append(txTags, sdk.GetPegInTag(denom, ubd.Balance.Amount)) + + for _, coin := range transferAmt { + if coin.Amount > 0 { + txTags = append(txTags, sdk.GetPegInTag(coin.Denom, coin.Amount)) + } + } txTags = append(txTags, sdk.MakeTag(types.TagStakeMigrationSendSequence, []byte(strconv.FormatUint(sendSeq, 10)))) return sdk.Result{