Commit b2a4f769 authored by Aaron's avatar Aaron

#16 keep an empty data querier

parent 2d091224
Pipeline #54303565 passed with stages
in 12 minutes and 36 seconds
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")
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment