Skip to content

Commit

Permalink
fix: reset context every time in refund loop (#378)
Browse files Browse the repository at this point in the history
  • Loading branch information
j75689 authored Jan 15, 2024
1 parent f7b025f commit 14aa8ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions x/stake/endblock.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,8 @@ func handleRefundStake(ctx sdk.Context, sideChainPrefix []byte, k keeper.Keeper)
delegation := types.MustUnmarshalDelegation(k.CDC(), iterator.Key(), iterator.Value())
if delegation.CrossStake {
ctx = ctx.WithCrossStake(true)
} else {
ctx = ctx.WithCrossStake(false)
}

result := handleMsgSideChainUndelegate(ctx, types.MsgSideChainUndelegate{
Expand Down

0 comments on commit 14aa8ec

Please sign in to comment.