From 97b6bd1d2a077455d492ed9759ed2406eeffd6c1 Mon Sep 17 00:00:00 2001 From: Nabarun Date: Fri, 19 Jul 2024 15:15:45 +0530 Subject: [PATCH] Watch contract for multiple data sources from subgraph config --- packages/graph-node/src/watcher.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/graph-node/src/watcher.ts b/packages/graph-node/src/watcher.ts index c2d3217f..4f230014 100644 --- a/packages/graph-node/src/watcher.ts +++ b/packages/graph-node/src/watcher.ts @@ -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); } } }