File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/relay/src/lib/services/ethService/ethFilterService Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 3
3
import { ConfigService } from '@hashgraph/json-rpc-config-service/dist/services' ;
4
4
import { Logger } from 'pino' ;
5
5
6
- import { generateRandomHex } from '../../../../formatters' ;
6
+ import { generateRandomHex , toHash32 } from '../../../../formatters' ;
7
7
import { MirrorNodeClient } from '../../../clients' ;
8
8
import constants from '../../../constants' ;
9
9
import { JsonRpcError , predefined } from '../../../errors/JsonRpcError' ;
@@ -241,7 +241,7 @@ export class FilterService implements IFilterService {
241
241
: await this . common . getLatestBlockNumber ( requestDetails ) ,
242
242
) ;
243
243
244
- result = result ?. blocks ?. map ( ( r ) => r . hash ) || [ ] ;
244
+ result = result ?. blocks ?. map ( ( r ) => toHash32 ( r . hash ) ) || [ ] ;
245
245
} else if ( this . supportedTypes . indexOf ( filter . type ) === - 1 ) {
246
246
throw predefined . UNSUPPORTED_METHOD ;
247
247
}
You can’t perform that action at this time.
0 commit comments