From 89e7fe99c00cf002db051529fbf845ae71e1c0bf Mon Sep 17 00:00:00 2001 From: Cosmic Vagabond <121588426+cosmic-vagabond@users.noreply.github.com> Date: Fri, 1 Sep 2023 10:15:53 +0200 Subject: [PATCH] feat: mock response --- app/wasm.go | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/app/wasm.go b/app/wasm.go index 3c361c7ac..8bfbe2c42 100644 --- a/app/wasm.go +++ b/app/wasm.go @@ -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