Compare commits
2 Commits
e80654de35
...
bf68b28680
Author | SHA1 | Date |
---|---|---|
Derrick Hammer | bf68b28680 | |
Derrick Hammer | 8684fcde3c |
|
@ -24,7 +24,7 @@ export class RpcNetwork extends Client {
|
|||
});
|
||||
}
|
||||
simpleQuery({ relay, query, options = {}, }) {
|
||||
return new SimpleRpcQuery({
|
||||
return createSimpleRpcQuery({
|
||||
network: this,
|
||||
relay,
|
||||
query,
|
||||
|
@ -80,3 +80,4 @@ export class SimpleRpcQuery extends RpcQueryBase {
|
|||
}
|
||||
}
|
||||
export const createClient = factory(RpcNetwork, RPC_MODULE);
|
||||
const createSimpleRpcQuery = factory(SimpleRpcQuery, RPC_MODULE);
|
||||
|
|
|
@ -46,7 +46,7 @@ export class RpcNetwork extends Client {
|
|||
query: ClientRPCRequest;
|
||||
options?: RpcQueryOptions;
|
||||
}): SimpleRpcQuery {
|
||||
return new SimpleRpcQuery({
|
||||
return createSimpleRpcQuery({
|
||||
network: this,
|
||||
relay,
|
||||
query,
|
||||
|
@ -125,3 +125,7 @@ export class SimpleRpcQuery extends RpcQueryBase {
|
|||
}
|
||||
|
||||
export const createClient = factory<RpcNetwork>(RpcNetwork, RPC_MODULE);
|
||||
const createSimpleRpcQuery = factory<SimpleRpcQuery>(
|
||||
SimpleRpcQuery,
|
||||
RPC_MODULE
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue