Skip to content

Commit

Permalink
fixes loop over exposures
Browse files Browse the repository at this point in the history
  • Loading branch information
P-U-D-G-E committed Sep 26, 2023
1 parent 02dbbf9 commit 1efacc2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x/orderbook/keeper/bet_wager.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,9 @@ func (k Keeper) initFulfillmentInfo(
err = sdkerrors.Wrapf(types.ErrParticipationExposuresNotFound, "%s, %s", book.UID, oddsUID)
return
}
for oddUID := range peMap {
if book.OddsCount != cast.ToUint64(len(peMap[oddUID])) {
err = sdkerrors.Wrapf(types.ErrParticipationExposuresNotFound, "%s, %s", book.UID, oddUID)
for pIndex, poMap := range peMap {
if book.OddsCount != cast.ToUint64(len(poMap)) {
err = sdkerrors.Wrapf(types.ErrParticipationExposuresNotFound, "%s, %d", book.UID, pIndex)
return
}
}
Expand Down

0 comments on commit 1efacc2

Please sign in to comment.