We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b553b1b commit 7b7be0dCopy full SHA for 7b7be0d
src.ts/providers/provider-jsonrpc.ts
@@ -1162,7 +1162,10 @@ export abstract class JsonRpcApiPollingProvider extends JsonRpcApiProvider {
1162
constructor(network?: Networkish, options?: JsonRpcApiProviderOptions) {
1163
super(network, options);
1164
1165
- this.#pollingInterval = 4000;
+ let pollingInterval = this._getOption("pollingInterval");
1166
+ if (pollingInterval == null) { pollingInterval = defaultOptions.pollingInterval; }
1167
+
1168
+ this.#pollingInterval = pollingInterval;
1169
}
1170
1171
_getSubscriber(sub: Subscription): Subscriber {
0 commit comments