diff --git a/x/dex/keeper/keeper_matching_test.go b/x/dex/keeper/keeper_matching_test.go index 7644f98e0..8c75faff1 100644 --- a/x/dex/keeper/keeper_matching_test.go +++ b/x/dex/keeper/keeper_matching_test.go @@ -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 } @@ -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, diff --git a/x/dex/types/genesis.go b/x/dex/types/genesis.go index 2295f0c8c..f7b1e2be7 100644 --- a/x/dex/types/genesis.go +++ b/x/dex/types/genesis.go @@ -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) }