From cce09d1e95d8e25cbed92fb0b1bdc8ddd2b48500 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 18 Mar 2023 12:23:49 -0400 Subject: [PATCH] *allow a buffer to be passed --- src/query/index.ts | 2 +- src/query/simple.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/query/index.ts b/src/query/index.ts index fc1ecd9..aa2ea04 100644 --- a/src/query/index.ts +++ b/src/query/index.ts @@ -17,7 +17,7 @@ export default class RpcNetworkQueryFactory { query, options = {}, }: { - relay: string; + relay: string | Buffer; query: ClientRPCRequest; options?: RpcQueryOptions; }): SimpleRpcQuery { diff --git a/src/query/simple.ts b/src/query/simple.ts index 3d48af1..9f8fdda 100644 --- a/src/query/simple.ts +++ b/src/query/simple.ts @@ -19,7 +19,7 @@ export default class SimpleRpcQuery extends RpcQueryBase { options, }: { network: RpcNetwork; - relay?: string | any; + relay?: string | Buffer | any; query: ClientRPCRequest; options: RpcQueryOptions; }) {