Skip to content

Commit 6b75cb4

Browse files
committed
test: making gh actions work (#4630)
Signed-off-by: Mariusz Jasuwienas <[email protected]>
1 parent b248e5d commit 6b75cb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/server/src/compliance.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ const makeSureBodyExistsAndCanBeChecked = (ctx: IResponseContext) => {
4343
ctx.body = FALLBACK_RESPONSE_BODY;
4444
return false;
4545
}
46+
ctx.body.jsonrpc ||= FALLBACK_RESPONSE_BODY.jsonrpc;
47+
ctx.body.id ||= FALLBACK_RESPONSE_BODY.id;
4648

4749
return true;
4850
};
@@ -56,8 +58,6 @@ const makeSureBodyExistsAndCanBeChecked = (ctx: IResponseContext) => {
5658
*/
5759
export const jsonRpcComplianceLayer = async (ctx: IResponseContext & ParameterizedContext) => {
5860
if (!makeSureBodyExistsAndCanBeChecked(ctx)) return;
59-
ctx.body.jsonrpc ||= FALLBACK_RESPONSE_BODY.jsonrpc;
60-
ctx.body.id ||= FALLBACK_RESPONSE_BODY.id;
6161

6262
if (ctx.status === 200 && !ctx.body.result) ctx.body.result = '0x';
6363
if (ctx.status === 400) {

0 commit comments

Comments
 (0)