File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 */
5759export 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 ) {
You can’t perform that action at this time.
0 commit comments