Skip to content

Commit

Permalink
chore(ecocredit/marketplace): state machine audit updates (#1170)
Browse files Browse the repository at this point in the history
* chore: fix errors

* chore: remove unsued vars

Co-authored-by: Ryan Christoffersen <12519942+ryanchristo@users.noreply.github.com>
  • Loading branch information
aleem1314 and ryanchristo authored Jun 13, 2022
1 parent c874e24 commit 8e1914f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion x/ecocredit/server/marketplace/prune_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,6 @@ func TestPrune_NilExpiration(t *testing.T) {
assert.NilError(t, err)
assert.Equal(t, "5", order.Quantity)

order, err = s.marketStore.SellOrderTable().Get(s.ctx, shouldNotExistOrder)
_, err = s.marketStore.SellOrderTable().Get(s.ctx, shouldNotExistOrder)
assert.ErrorIs(t, err, ormerrors.NotFound)
}
4 changes: 2 additions & 2 deletions x/ecocredit/server/marketplace/query_sell_orders_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func TestSellOrdersByDenom(t *testing.T) {
assert.Equal(t, uint64(1), res.Pagination.Total)

// bad denom should error
res, err = s.k.SellOrdersByBatchDenom(s.ctx, &marketplace.QuerySellOrdersByBatchDenomRequest{
_, err = s.k.SellOrdersByBatchDenom(s.ctx, &marketplace.QuerySellOrdersByBatchDenomRequest{
BatchDenom: "yikes!",
Pagination: nil,
})
Expand Down Expand Up @@ -135,7 +135,7 @@ func TestSellOrdersBySeller(t *testing.T) {
assert.Equal(t, uint64(0), res.Pagination.Total)

// bad address should fail
res, err = s.k.SellOrdersBySeller(s.ctx, &marketplace.QuerySellOrdersBySellerRequest{
_, err = s.k.SellOrdersBySeller(s.ctx, &marketplace.QuerySellOrdersBySellerRequest{
Seller: "foobar1vlk23jrkl",
Pagination: nil,
})
Expand Down

0 comments on commit 8e1914f

Please sign in to comment.