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 451702a commit 46db404
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions app/wasm.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package app

import (
"encoding/json"
"fmt"

errorsmod "cosmossdk.io/errors"
"github.com/CosmWasm/wasmd/x/wasm"
Expand Down Expand Up @@ -74,24 +73,23 @@ func CustomQuerier(qp *QueryPlugin) func(ctx sdk.Context, request json.RawMessag

_ = priceResponse

// print the priceResponse with big space before and after
fmt.Println("\n\n\n")
fmt.Println(priceResponse)
fmt.Println("\n\n\n")

// 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"),
// },
// }

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

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

0 comments on commit 46db404

Please sign in to comment.