Skip to content

Commit

Permalink
fix: debug
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmic-vagabond committed Sep 1, 2023
1 parent 5f66a8a commit 42fb950
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions app/wasm.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,31 +71,14 @@ func CustomQuerier(qp *QueryPlugin) func(ctx sdk.Context, request json.RawMessag
return nil, errorsmod.Wrap(err, "failed to get all prices")
}

_ = priceResponse

// res := AllPriceResponse{
// Price: priceResponse.Price,
// Pagination: &query.PageResponse{
// NextKey: priceResponse.Pagination.NextKey,
// },
// }

// res := AllPriceResponse{
// Price: []oracletypes.Price{},
// Pagination: &query.PageResponse{
// // fake a next key in []byte form
// NextKey: []byte("fake-next-key"),
// },
// }

// copy array priceResponse.Price
price := make([]oracletypes.Price, len(priceResponse.Price))
copy(price, priceResponse.Price)

res := AllPriceResponse{
Price: price,
Pagination: &query.PageResponse{
NextKey: nil,
NextKey: priceResponse.Pagination.NextKey,
},
}

Expand Down

0 comments on commit 42fb950

Please sign in to comment.