Skip to content

Commit

Permalink
Fix: cache abi
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Jun 3, 2024
1 parent 69441fa commit c0ef14d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/indexer/parser/resolver/state_updates.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c0ef14d

Please sign in to comment.