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; }) {