*If we are passed a buffer, convert it to hex
This commit is contained in:
parent
1d66b2452f
commit
9bb3f2ab60
|
@ -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