Skip to content

Commit

Permalink
fix: updated validateBlockRangeAndAddTimestampToParams for eth_newFilter
Browse files Browse the repository at this point in the history
Signed-off-by: Logan Nguyen <logan.nguyen@swirldslabs.com>
  • Loading branch information
quiet-node committed May 30, 2024
1 parent 09b0bc7 commit 03d5e58
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export interface ICommonService {
fromBlock: string,
toBlock: string,
requestIdPrefix?: string,
address?: string | string[] | null,
): Promise<boolean>;

getHistoricalBlockResponse(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ export class FilterService implements IFilterService {
try {
FilterService.requireFiltersEnabled();

if (!(await this.common.validateBlockRangeAndAddTimestampToParams({}, fromBlock, toBlock, requestIdPrefix))) {
if (
!(await this.common.validateBlockRangeAndAddTimestampToParams({}, fromBlock, toBlock, requestIdPrefix, address))
) {
throw predefined.INVALID_BLOCK_RANGE;
}

Expand Down

0 comments on commit 03d5e58

Please sign in to comment.