Skip to content

Commit

Permalink
fix: block ref response
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptodev-2s committed Jul 18, 2024
1 parent 8151cd5 commit 73df843
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/block-ref.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ describe('createBlockRefMiddleware', () => {
id: 1,
jsonrpc: '2.0',
result: 'something',
error: undefined,
});
},
);
Expand Down Expand Up @@ -208,6 +209,7 @@ describe('createBlockRefMiddleware', () => {
id: 1,
jsonrpc: '2.0',
result: 'something',
error: undefined,
});
},
);
Expand Down
2 changes: 2 additions & 0 deletions src/block-ref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ export function createBlockRefMiddleware({
childRequest,
);
res.result = childResult;
res.error = undefined;
} catch (error: any) {
res.result = undefined;
res.error = error;
}

Expand Down

0 comments on commit 73df843

Please sign in to comment.