Compare commits
2 Commits
1d66b2452f
...
ee5c1ea692
Author | SHA1 | Date |
---|---|---|
Derrick Hammer | ee5c1ea692 | |
Derrick Hammer | 9bb3f2ab60 |
|
@ -1 +1 @@
|
||||||
{"version":3,"file":"simple.d.ts","sourceRoot":"","sources":["../../src/query/simple.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAe,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAK9C,OAAO,YAAY,MAAM,WAAW,CAAC;AAGrC,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,YAAY;IACtD,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;IAChC,UAAkB,MAAM,EAAE,gBAAgB,CAAC;gBAE/B,EACV,OAAO,EACP,KAAK,EACL,KAAK,EACL,OAAO,GACR,EAAE;QACD,OAAO,EAAE,UAAU,CAAC;QACpB,KAAK,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;QACrB,KAAK,EAAE,gBAAgB,CAAC;QACxB,OAAO,EAAE,eAAe,CAAC;KAC1B;cAKe,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;cAKrB,UAAU,IAAI,OAAO,CAAC,GAAG,CAAC;cAwD1B,cAAc;CAmB/B"}
|
{"version":3,"file":"simple.d.ts","sourceRoot":"","sources":["../../src/query/simple.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAe,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAK9C,OAAO,YAAY,MAAM,WAAW,CAAC;AAGrC,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,YAAY;IACtD,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;IAChC,UAAkB,MAAM,EAAE,gBAAgB,CAAC;gBAE/B,EACV,OAAO,EACP,KAAK,EACL,KAAK,EACL,OAAO,GACR,EAAE;QACD,OAAO,EAAE,UAAU,CAAC;QACpB,KAAK,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;QACrB,KAAK,EAAE,gBAAgB,CAAC;QACxB,OAAO,EAAE,eAAe,CAAC;KAC1B;cASe,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;cAKrB,UAAU,IAAI,OAAO,CAAC,GAAG,CAAC;cAwD1B,cAAc;CAmB/B"}
|
|
@ -7,6 +7,9 @@ export default class SimpleRpcQuery extends RpcQueryBase {
|
||||||
_relay;
|
_relay;
|
||||||
constructor({ network, relay, query, options, }) {
|
constructor({ network, relay, query, options, }) {
|
||||||
super({ network, query, options });
|
super({ network, query, options });
|
||||||
|
if (b4a.isBuffer(relay)) {
|
||||||
|
relay = b4a.from(relay).toString("hex");
|
||||||
|
}
|
||||||
this._relay = relay;
|
this._relay = relay;
|
||||||
}
|
}
|
||||||
async _run() {
|
async _run() {
|
||||||
|
|
|
@ -24,6 +24,10 @@ export default class SimpleRpcQuery extends RpcQueryBase {
|
||||||
options: RpcQueryOptions;
|
options: RpcQueryOptions;
|
||||||
}) {
|
}) {
|
||||||
super({ network, query, options });
|
super({ network, query, options });
|
||||||
|
if (b4a.isBuffer(relay)) {
|
||||||
|
relay = b4a.from(relay).toString("hex");
|
||||||
|
}
|
||||||
|
|
||||||
this._relay = relay;
|
this._relay = relay;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue