Skip to content

Commit

Permalink
fix: reset context every time in refund loop
Browse files Browse the repository at this point in the history
  • Loading branch information
j75689 committed Jan 14, 2024
1 parent f7b025f commit 06d3a4c
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 06d3a4c

Please sign in to comment.