@@ -22,7 +22,6 @@ import {
2222 toHex ,
2323 withOverriddenEnvsInMochaTest ,
2424} from '../../../helpers' ;
25- import { generateEthTestEnv } from '../../eth/eth-helpers' ;
2625
2726const logger = pino ( { level : 'silent' } ) ;
2827const registry = new Registry ( ) ;
@@ -542,9 +541,21 @@ describe('Filter API Test Suite', async function () {
542541 200 ,
543542 JSON . stringify ( {
544543 blocks : [
545- { ...defaultBlock , number : defaultBlock . number + 1 , hash : '0x1' } ,
546- { ...defaultBlock , number : defaultBlock . number + 2 , hash : '0x2' } ,
547- { ...defaultBlock , number : defaultBlock . number + 3 , hash : '0x3' } ,
544+ {
545+ ...defaultBlock ,
546+ number : defaultBlock . number + 1 ,
547+ hash : '0x814c4894b0d8894966d79d6c22bee808bdf4150a9202cc82e97800b7dc540119cb84fcf5723e0d312322972551f2f6f3' ,
548+ } ,
549+ {
550+ ...defaultBlock ,
551+ number : defaultBlock . number + 2 ,
552+ hash : '0x6caf6ddba4d214b1c4bf5285950335df17499bb7f9a43929935181bc04c0a6193997e56fcaebbcae23a8f65b53df2c6c' ,
553+ } ,
554+ {
555+ ...defaultBlock ,
556+ number : defaultBlock . number + 3 ,
557+ hash : '0x08bac9fc00f257cba1215929cb19355c4ee08679c78e387ca0720142d50758925a0f5283c02dfa3fb37317116f0bc2a2' ,
558+ } ,
548559 ] ,
549560 } ) ,
550561 ) ;
@@ -562,12 +573,14 @@ describe('Filter API Test Suite', async function () {
562573 ) ;
563574
564575 const result = await filterService . getFilterChanges ( existingFilterId , requestDetails ) ;
565-
566576 expect ( result ) . to . exist ;
567577 expect ( result . length ) . to . eq ( 3 , 'returns correct number of blocks' ) ;
568- expect ( result [ 0 ] ) . to . eq ( '0x1' , 'result is in ascending order' ) ;
569- expect ( result [ 1 ] ) . to . eq ( '0x2' ) ;
570- expect ( result [ 2 ] ) . to . eq ( '0x3' ) ;
578+ expect ( result [ 0 ] ) . to . eq (
579+ '0x814c4894b0d8894966d79d6c22bee808bdf4150a9202cc82e97800b7dc540119' ,
580+ 'result is in ascending order' ,
581+ ) ;
582+ expect ( result [ 1 ] ) . to . eq ( '0x6caf6ddba4d214b1c4bf5285950335df17499bb7f9a43929935181bc04c0a619' ) ;
583+ expect ( result [ 2 ] ) . to . eq ( '0x08bac9fc00f257cba1215929cb19355c4ee08679c78e387ca0720142d5075892' ) ;
571584
572585 const secondResult = await filterService . getFilterChanges ( existingFilterId , requestDetails ) ;
573586 expect ( secondResult ) . to . exist ;
0 commit comments