Skip to content

Commit

Permalink
Merge pull request #850 from telosnetwork/816-rate-limiting-issue-on-…
Browse files Browse the repository at this point in the history
…holders-view-2

#816 | change the strategy to only fetch contracts from cache
  • Loading branch information
pmjanus authored Oct 28, 2024
2 parents 4fcead1 + 3f28a9c commit a7e267f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/lib/contract/ContractManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a7e267f

Please sign in to comment.