Skip to content

Commit 1d00302

Browse files
committed
fix: "from" block fixed on first activity fetching
1 parent 6d4d059 commit 1d00302

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/wallet/activityfetcher/manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func (m *Manager) FetchActivity(ctx context.Context, chainID uint64, account get
6363
parameters.ToBlock = &toBlock
6464

6565
if lastFetchedBlock == nil {
66-
fromBlock := gethrpc.EarliestBlockNumber
66+
fromBlock := gethrpc.BlockNumber(0)
6767
parameters.FromBlock = &fromBlock
6868
} else if uint64(lastFetchedBlock.Int64()) >= currentBlock {
6969
// Nothing to fetch

0 commit comments

Comments
 (0)