Skip to content

Commit

Permalink
fixed linter
Browse files Browse the repository at this point in the history
  • Loading branch information
miladz68 committed Nov 21, 2024
1 parent 6d4ced1 commit 8a4f09b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions x/dex/keeper/keeper_matching_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6513,7 +6513,7 @@ func fillReserveAndOrderSequence(
sdkCtx, sdk.MustAccAddressFromBech32(order.Creator), order.ID,
)
require.NoError(t, err)
require.Greater(t, storedOrder.Sequence, uint64(0))
require.Positive(t, storedOrder.Sequence)
orders[i].Sequence = storedOrder.Sequence
orders[i].Reserve = orderReserve
}
Expand Down Expand Up @@ -6563,7 +6563,7 @@ func assertOrderPlacementResult(
}

func assertPlacementEvents(t *testing.T, order types.Order, events OrderPlacementEvents) {
require.Greater(t, events.OrderPlaced.Sequence, uint64(0))
require.Positive(t, events.OrderPlaced.Sequence)
require.Equal(t, types.EventOrderPlaced{
Creator: order.Creator,
ID: order.ID,
Expand Down
1 change: 0 additions & 1 deletion x/dex/types/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ func (gs GenesisState) Validate() error {
}
usedSequence[order.Sequence] = struct{}{}

order := order // copy
if _, ok := denoms[order.BaseDenom]; !ok {
return sdkerrors.Wrapf(ErrInvalidInput, "base denom %s does not exist in order books", order.BaseDenom)
}
Expand Down

0 comments on commit 8a4f09b

Please sign in to comment.