From c0ef14d30fb6cb12843c50d8ee57affef36bc20c Mon Sep 17 00:00:00 2001 From: Artem Date: Mon, 3 Jun 2024 14:06:32 +0200 Subject: [PATCH] Fix: cache abi --- pkg/indexer/parser/resolver/state_updates.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/indexer/parser/resolver/state_updates.go b/pkg/indexer/parser/resolver/state_updates.go index d92a357..9d00edc 100644 --- a/pkg/indexer/parser/resolver/state_updates.go +++ b/pkg/indexer/parser/resolver/state_updates.go @@ -100,11 +100,11 @@ func (resolver *Resolver) parseDeployedContracts(ctx context.Context, block *sto if err != nil { return errors.Wrap(err, contracts[i].ClassHash.String()) } - resolver.cache.SetAbiByAddress(class, contracts[i].Address.Bytes()) } key := data.NewFeltFromBytes(contracts[i].Address.Bytes()) addrs[key] = class + resolver.cache.SetAbiByAddress(class, contracts[i].Address.Bytes()) } hash := make([][]byte, 0)