From ba76a94a896a1e6884d643591ca1a772e3f66a58 Mon Sep 17 00:00:00 2001 From: Viterbo Date: Fri, 6 Sep 2024 10:25:40 -0300 Subject: [PATCH] now we asume contracts are always in cache, delegating all to API --- src/lib/contract/ContractManager.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/lib/contract/ContractManager.js b/src/lib/contract/ContractManager.js index 54dfadc8..79f70c8b 100644 --- a/src/lib/contract/ContractManager.js +++ b/src/lib/contract/ContractManager.js @@ -387,10 +387,8 @@ export default class ContractManager { } else if (this.nullContractsManager.existsContract(addressLower)) { result = this.nullContractsManager.getContractInfo(addressLower); } else { - result = await this.getContract(addressLower); - if (result) { - result = this.nullContractsManager.getContractInfo(addressLower); - } + // We are going to always assume that if the address is a contract, it is already in the cache + // Because the indexer API should always return all involved contracts in a query response } return result; }