From 3b7887e2c46440bc6d5f69851f7360f93696bd59 Mon Sep 17 00:00:00 2001 From: Eric Jizba Date: Mon, 26 Aug 2024 14:59:19 -0700 Subject: [PATCH] Fix undefined params when http streaming is on (#288) --- src/http/HttpRequest.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/http/HttpRequest.ts b/src/http/HttpRequest.ts index bd7865d..7e0ab8f 100644 --- a/src/http/HttpRequest.ts +++ b/src/http/HttpRequest.ts @@ -153,9 +153,8 @@ export function createStreamRequest( const params: Record = {}; for (const [key, rpcValue] of Object.entries(rpcParams)) { - const value = fromRpcTypedData(rpcValue); - if (typeof value === 'string') { - params[key] = value; + if (isDefined(rpcValue.string)) { + params[key] = rpcValue.string; } }