fix: update Schema service to use new API endpoint
This commit is contained in:
1 parent
af6e07323b
commit
fbc640b7c4
11 files changed
+1481
-122
No files matched your search
@@ -40,3 +40,16 @@ func (k Querier) BuildTx(goCtx context.Context, req *types.BuildTxRequest) (*typ
|
||||
// ctx := sdk.UnwrapSDKContext(goCtx)
|
||||
return &types.BuildTxResponse{}, nil
|
||||
}
|
||||
|
||||
// Schema implements types.QueryServer.
|
||||
func (k Querier) Schema(goCtx context.Context, req *types.QuerySchemaRequest) (*types.QuerySchemaResponse, error) {
|
||||
ctx := sdk.UnwrapSDKContext(goCtx)
|
||||
|
||||
p, err := k.Keeper.Params.Get(ctx)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &types.QuerySchemaResponse{
|
||||
Schema: p.Schema,
|
||||
}, nil
|
||||
}
|
||||
Reference in new issue
Block a user