diff --git a/web3/packages/api-server/src/methods/modules/eth.ts b/web3/packages/api-server/src/methods/modules/eth.ts index b78f68e85..aba36a524 100644 --- a/web3/packages/api-server/src/methods/modules/eth.ts +++ b/web3/packages/api-server/src/methods/modules/eth.ts @@ -930,7 +930,7 @@ export class Eth { fromBlock.startsWith("0x") && typeof toBlock === "string" && toBlock.startsWith("0x") && - fromBlock > toBlock + BigInt(fromBlock) > BigInt(toBlock) ) { throw new HeaderNotFoundError( `invalid from and to block combination: from > to`