From 40ff63075e231db86a7dde9d3e9b3876bf98495b Mon Sep 17 00:00:00 2001 From: xiaohuo Date: Fri, 28 Jun 2024 18:55:25 +0800 Subject: [PATCH] fix: log query range type error --- staker/rollup_watcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/staker/rollup_watcher.go b/staker/rollup_watcher.go index 6d871be24e..4ff8db0ce3 100644 --- a/staker/rollup_watcher.go +++ b/staker/rollup_watcher.go @@ -193,7 +193,7 @@ func (r *RollupWatcher) LookupNodeChildren(ctx context.Context, nodeNum uint64, // break down the query to avoid eth_getLogs query limit for toBlock.Cmp(fromBlock) > 0 { query.FromBlock = fromBlock - query.ToBlock = new(big.Int).Add(fromBlock, big.NewInt(logQueryRange)) + query.ToBlock = new(big.Int).Add(fromBlock, big.NewInt(int64(logQueryRange))) if query.ToBlock.Cmp(toBlock) > 0 { query.ToBlock = toBlock }