Skip to content

Commit 26e8114

Browse files
committed
test: add test for eth_getBlockReceipts returning null when block is not found (#3813)
Signed-off-by: Michał Walczak <[email protected]>
1 parent 0844b67 commit 26e8114

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/server/tests/acceptance/rpc_batch1.spec.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -821,6 +821,15 @@ describe('@api-batch-1 RPC Server Acceptance Tests', function () {
821821
['0x', requestIdPrefix],
822822
]);
823823
});
824+
825+
it('should return null for "eth_getBlockReceipts" when block is not found', async function () {
826+
const res = await relay.call(
827+
RelayCalls.ETH_ENDPOINTS.ETH_GET_BLOCK_RECEIPTS,
828+
[Address.NON_EXISTING_BLOCK_HASH],
829+
requestIdPrefix,
830+
);
831+
expect(res).to.be.null;
832+
});
824833
});
825834

826835
describe('Transaction related RPC Calls', () => {

0 commit comments

Comments
 (0)