From d893e8759525e437f3e90998f1a4a8b47fc8f22b Mon Sep 17 00:00:00 2001 From: Roshan <48975233+Pythonberg1997@users.noreply.github.com> Date: Fri, 12 Jan 2024 10:41:30 +0800 Subject: [PATCH] fix: add missing tag of relayer fee in `handleMsgSideChainStakeMigration` (#376) --- 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{