Watch contract for multiple data sources from subgraph config (#529)

* Watch contract for multiple data sources from subgraph config

* Upgrade package versions
This commit is contained in:
2024-07-19 17:58:20 +05:30
committed by GitHub
parent 42cb688921
commit 37885c64eb
14 changed files with 36 additions and 40 deletions
+1 -5
View File
@@ -176,11 +176,7 @@ export class GraphWatcher {
// Skip for templates as they are added dynamically.
if (address) {
const watchedContract = this._indexer.isContractAddressWatched(address);
if (!watchedContract) {
await this._indexer.watchContract(address, name, true, startBlock);
}
await this._indexer.watchContract(address, name, true, startBlock);
}
}
}