Skip to content

Commit 3b7887e

Browse files
authored
Fix undefined params when http streaming is on (#288)
1 parent ce4bd98 commit 3b7887e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/http/HttpRequest.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,8 @@ export function createStreamRequest(
153153

154154
const params: Record<string, string> = {};
155155
for (const [key, rpcValue] of Object.entries(rpcParams)) {
156-
const value = fromRpcTypedData(rpcValue);
157-
if (typeof value === 'string') {
158-
params[key] = value;
156+
if (isDefined(rpcValue.string)) {
157+
params[key] = rpcValue.string;
159158
}
160159
}
161160

0 commit comments

Comments
 (0)