Skip to content

Commit

Permalink
#16 keep an empty data querier
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronc committed Mar 29, 2019
1 parent 2d09122 commit b2a4f76
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions x/data/querier.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package data

import (
sdk "github.com/cosmos/cosmos-sdk/types"
abci "github.com/tendermint/tendermint/abci/types"
)

func NewQuerier(keeper Keeper) sdk.Querier {
return func(ctx sdk.Context, path []string, req abci.RequestQuery) (res []byte, err sdk.Error) {
switch path[0] {
default:
return nil, sdk.ErrUnknownRequest("unknown data query endpoint")
}
}
}

0 comments on commit b2a4f76

Please sign in to comment.