From cf8c8caf2aa7c8d0aa8117e3651206675cdb3ed5 Mon Sep 17 00:00:00 2001 From: Artem Date: Wed, 12 Jun 2024 17:45:51 +0200 Subject: [PATCH] Fix: cache address --- pkg/indexer/parser/resolver/state_updates.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/indexer/parser/resolver/state_updates.go b/pkg/indexer/parser/resolver/state_updates.go index 9d00edc..9fe919c 100644 --- a/pkg/indexer/parser/resolver/state_updates.go +++ b/pkg/indexer/parser/resolver/state_updates.go @@ -122,6 +122,7 @@ func (resolver *Resolver) parseDeployedContracts(ctx context.Context, block *sto if class, ok := addrs[h]; ok && addresses[i].ClassID == nil { addresses[i].ClassID = &class.ID resolver.addAddress(&addresses[i]) + resolver.cache.SetAddress(ctx, addresses[i]) delete(addrs, h) } }