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 6b75cb4 commit cfa515eCopy full SHA for cfa515e
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
-
62
if (ctx.status === 200 && !ctx.body.result) ctx.body.result = '0x';
63
if (ctx.status === 400) {
64
if (!ctx.body.error || !ctx.body.error.code) ctx.body.error = FALLBACK_RESPONSE_BODY.error;
0 commit comments