Skip to content

Commit

Permalink
Fix undefined params when http streaming is on (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
ejizba authored Aug 26, 2024
1 parent ce4bd98 commit 3b7887e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/http/HttpRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,8 @@ export function createStreamRequest(

const params: Record<string, string> = {};
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;
}
}

Expand Down

0 comments on commit 3b7887e

Please sign in to comment.