From cccf9b1a2435c3958e1e59ccda0b64ac587d5e79 Mon Sep 17 00:00:00 2001 From: shunjizhan Date: Mon, 25 Sep 2023 15:00:19 +0800 Subject: [PATCH] fix --- packages/eth-providers/src/base-provider.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/eth-providers/src/base-provider.ts b/packages/eth-providers/src/base-provider.ts index 3357a86e2..a5ab15013 100644 --- a/packages/eth-providers/src/base-provider.ts +++ b/packages/eth-providers/src/base-provider.ts @@ -1804,6 +1804,8 @@ export abstract class BaseProvider extends AbstractProvider { so upper bound would be finalized block number ---------- */ _waitForSubql = async (_targetBlock: number) => { + if (!this.subql) return; + const SUBQL_MAX_WAIT_BLOCKS = 3; const upperBound = await this.finalizedBlockNumber;