*SimpleRpcQuery needs to be wrapped in a factory
This commit is contained in:
parent
e80654de35
commit
8684fcde3c
|
@ -46,7 +46,7 @@ export class RpcNetwork extends Client {
|
||||||
query: ClientRPCRequest;
|
query: ClientRPCRequest;
|
||||||
options?: RpcQueryOptions;
|
options?: RpcQueryOptions;
|
||||||
}): SimpleRpcQuery {
|
}): SimpleRpcQuery {
|
||||||
return new SimpleRpcQuery({
|
return createSimpleRpcQuery({
|
||||||
network: this,
|
network: this,
|
||||||
relay,
|
relay,
|
||||||
query,
|
query,
|
||||||
|
@ -125,3 +125,7 @@ export class SimpleRpcQuery extends RpcQueryBase {
|
||||||
}
|
}
|
||||||
|
|
||||||
export const createClient = factory<RpcNetwork>(RpcNetwork, RPC_MODULE);
|
export const createClient = factory<RpcNetwork>(RpcNetwork, RPC_MODULE);
|
||||||
|
const createSimpleRpcQuery = factory<SimpleRpcQuery>(
|
||||||
|
SimpleRpcQuery,
|
||||||
|
RPC_MODULE
|
||||||
|
);
|
||||||
|
|
Loading…
Reference in New Issue