We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfa515e commit 5619dedCopy full SHA for 5619ded
packages/server/src/compliance.ts
@@ -58,7 +58,6 @@ const makeSureBodyExistsAndCanBeChecked = (ctx: IResponseContext) => {
58
*/
59
export const jsonRpcComplianceLayer = async (ctx: IResponseContext & ParameterizedContext) => {
60
if (!makeSureBodyExistsAndCanBeChecked(ctx)) return;
61
- if (ctx.status === 200 && !ctx.body.result) ctx.body.result = '0x';
62
if (ctx.status === 400) {
63
if (!ctx.body.error || !ctx.body.error.code) ctx.body.error = FALLBACK_RESPONSE_BODY.error;
64
if (VALID_JSON_RPC_HTTP_REQUESTS_STATUS_CODE) ctx.status = 200;
0 commit comments