Skip to content

Commit

Permalink
renamed files only used in tests and updated the main_querier
Browse files Browse the repository at this point in the history
  • Loading branch information
girishramnani authored and antstalepresh committed May 27, 2020
1 parent 5856479 commit 988f852
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ func MockCookbook(tci keep.TestCoinInput, sender sdk.AccAddress) CreateCBRespons
func MockCookbookByName(tci keep.TestCoinInput, sender sdk.AccAddress, cookbookName string) CreateCBResponse {
cookbookDesc := "this has to meet character limits"
msg := msgs.NewMsgCreateCookbook(cookbookName, "", cookbookDesc, "SketchyCo", "1.0.0", "[email protected]", 1, msgs.DefaultCostPerBlock, sender)
cbResult, _ := HandlerMsgCreateCookbook(tci.Ctx, tci.PlnK, msg)
cbResult, err := HandlerMsgCreateCookbook(tci.Ctx, tci.PlnK, msg)
if err != nil {
}
cbData := CreateCBResponse{}
json.Unmarshal(cbResult.Data, &cbData)
return cbData
Expand Down
File renamed without changes.
3 changes: 2 additions & 1 deletion x/pylons/main_querier.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"github.com/Pylons-tech/pylons/x/pylons/queriers"

sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
abci "github.com/tendermint/tendermint/abci/types"
)

Expand Down Expand Up @@ -37,7 +38,7 @@ func NewQuerier(keeper keep.Keeper) sdk.Querier {
case queriers.KeyListTrade:
return queriers.ListTrade(ctx, path[1:], req, keeper)
default:
return nil, sdk.ErrUnknownRequest("unknown pylons query endpoint")
return nil, sdkerrors.Wrap(sdkerrors.ErrUnknownRequest, "unknown pylons query endpoint")
}
}
}

0 comments on commit 988f852

Please sign in to comment.