From b7110b0d171292f0c6a3a61dcdef0277405540f4 Mon Sep 17 00:00:00 2001 From: Divam Date: Fri, 8 Apr 2022 15:38:45 +0900 Subject: [PATCH] Remove 'prompt' from JSONRPC request params as it causes the following error: JSON-RPC Request has invalid publish params --- packages/client/src/controllers/publisher.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/client/src/controllers/publisher.ts b/packages/client/src/controllers/publisher.ts index 38fac86ee..59bc7dcb9 100644 --- a/packages/client/src/controllers/publisher.ts +++ b/packages/client/src/controllers/publisher.ts @@ -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);