fix: update Schema service to use new API endpoint

This commit is contained in:
Prad Nukala
2024-10-07 21:22:56 -04:00
parent af6e07323b
commit fbc640b7c4
11 changed files with 1481 additions and 122 deletions
+13
View File
@@ -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
}