From ff03d392a44b2aea36536c3dbbd516f4660cad48 Mon Sep 17 00:00:00 2001 From: j75689 Date: Fri, 1 Mar 2024 19:43:23 +0800 Subject: [PATCH 1/2] fix: publish ChainUndelegateEvent --- x/stake/handler_sidechain.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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, } From 16e1d7131c3b9d6e7a260ec3ca89fc3950a77d05 Mon Sep 17 00:00:00 2001 From: j75689 Date: Fri, 1 Mar 2024 19:49:57 +0800 Subject: [PATCH 2/2] docs: update change logs to v0.26.9 --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) 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