diff --git a/CHANGELOG.md b/CHANGELOG.md index 61c494bd0..4c4d03e26 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +##v0.26.9 +* [fix] [\#389] (https://github.com/bnb-chain/bnc-cosmos-sdk/pull/389) fix: publish ChainUndelegate event +* [fix] [\#390] (https://github.com/bnb-chain/bnc-cosmos-sdk/pull/390) fix: ledger sig conversion + ##v0.26.8 * [fix] [\#388] (https://github.com/bnb-chain/bnc-cosmos-sdk/pull/388) fix: publish completed UnbondingDelegation events to kafka in EndBlock diff --git a/x/stake/handler_sidechain.go b/x/stake/handler_sidechain.go index 8cc518bad..b2f21c1e0 100644 --- a/x/stake/handler_sidechain.go +++ b/x/stake/handler_sidechain.go @@ -461,16 +461,17 @@ func handleMsgSideChainUndelegate(ctx sdk.Context, msg MsgSideChainUndelegate, k // publish undelegate event if k.PbsbServer != nil && ctx.IsDeliverTx() { + 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, Amount: msg.Amount.Amount, Denom: msg.Amount.Denom, - TxHash: ctx.Value(baseapp.TxHashKey).(string), + TxHash: txHash, }, ChainId: msg.SideChainId, }