From 0489d145005e880014335d994db1b6eeded16c22 Mon Sep 17 00:00:00 2001 From: j75689 Date: Fri, 1 Mar 2024 19:36:40 +0800 Subject: [PATCH] fix --- x/stake/handler_sidechain.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x/stake/handler_sidechain.go b/x/stake/handler_sidechain.go index 352e665c3..f5e0cc22f 100644 --- a/x/stake/handler_sidechain.go +++ b/x/stake/handler_sidechain.go @@ -462,11 +462,11 @@ func handleMsgSideChainUndelegate(ctx sdk.Context, msg MsgSideChainUndelegate, k // publish undelegate event ctx.Logger().Info("publish undelegate event", "ctx.IsDeliverTx()", ctx.IsDeliverTx(), "PbsbServer", k.PbsbServer != nil, "PbsbServer_IsRunning", k.PbsbServer.IsRunning()) if k.PbsbServer != nil && ctx.IsDeliverTx() { - txHash, _ := ctx.Value(baseapp.TxHashKey).(string) + txHash, isFromTx := ctx.Value(baseapp.TxHashKey).(string) event := types.ChainUndelegateEvent{ UndelegateEvent: types.UndelegateEvent{ StakeEvent: types.StakeEvent{ - IsFromTx: true, + IsFromTx: isFromTx, }, Delegator: msg.DelegatorAddr, Validator: msg.ValidatorAddr,