Skip to content

Commit

Permalink
feat: mock response
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmic-vagabond committed Sep 1, 2023
1 parent a2f12b6 commit 89e7fe9
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions app/wasm.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,18 @@ 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: priceResponse.Pagination,
// }

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

// Serializing the response to a JSON byte array
Expand Down

0 comments on commit 89e7fe9

Please sign in to comment.