Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
j75689 committed Mar 1, 2024
1 parent 8a69e35 commit 0489d14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/stake/handler_sidechain.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0489d14

Please sign in to comment.