From 9bb3f2ab60c0c670ea5d2cd032e77b2a8b3f9256 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 18 Mar 2023 12:21:14 -0400 Subject: [PATCH] *If we are passed a buffer, convert it to hex --- src/query/simple.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/query/simple.ts b/src/query/simple.ts index 3a1101e..3d48af1 100644 --- a/src/query/simple.ts +++ b/src/query/simple.ts @@ -24,6 +24,10 @@ export default class SimpleRpcQuery extends RpcQueryBase { options: RpcQueryOptions; }) { super({ network, query, options }); + if (b4a.isBuffer(relay)) { + relay = b4a.from(relay).toString("hex"); + } + this._relay = relay; }