mirror of
https://github.com/cerc-io/watcher-ts
synced 2026-04-05 05:44:06 +00:00
Watch contract for multiple data sources from subgraph config
This commit is contained in:
parent
42cb688921
commit
97b6bd1d2a
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user