From 3124809f0f62bbf6ca77a1f1d849a02ddcaa7bd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Men=C3=A9ndez?= Date: Tue, 7 Nov 2023 12:49:30 +0100 Subject: [PATCH] fixin tokens synced status from external providers --- service/holders_scanner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/holders_scanner.go b/service/holders_scanner.go index a3d4ba76..b7c91159 100644 --- a/service/holders_scanner.go +++ b/service/holders_scanner.go @@ -449,12 +449,12 @@ func (s *HoldersScanner) scanHolders(ctx context.Context, addr common.Address, c for holder, balance := range externalBalances { th.Append(holder, balance) } - th.Synced() blockNumber, err := provider.LatestBlockNumber(ctx, []byte(th.ExternalID)) if err != nil { return false, err } th.BlockDone(blockNumber) + th.Synced() return true, s.saveHolders(th) } // get correct web3 uri provider