Skip to content

Commit

Permalink
Remove 'prompt' from JSONRPC request params as it causes the followin…
Browse files Browse the repository at this point in the history
…g error:

JSON-RPC Request has invalid publish params
  • Loading branch information
dfordivam committed Apr 8, 2022
1 parent df7f51a commit b7110b0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/client/src/controllers/publisher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,7 @@ export class Publisher extends IPublisher {
prompt,
},
};
if (typeof request.params?.prompt === "undefined") {
delete request.params?.prompt;
}
delete request.params?.prompt;
this.logger.debug(`Outgoing Relay Payload`);
this.logger.trace({ type: "payload", direction: "outgoing", request });
return this.relayer.provider.request(request);
Expand Down

0 comments on commit b7110b0

Please sign in to comment.