Skip to content

Commit

Permalink
Fix JsonRpcProvider ignoring pollingInterval in options (#4644).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Apr 30, 2024
1 parent b553b1b commit 7b7be0d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src.ts/providers/provider-jsonrpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1162,7 +1162,10 @@ export abstract class JsonRpcApiPollingProvider extends JsonRpcApiProvider {
constructor(network?: Networkish, options?: JsonRpcApiProviderOptions) {
super(network, options);

this.#pollingInterval = 4000;
let pollingInterval = this._getOption("pollingInterval");
if (pollingInterval == null) { pollingInterval = defaultOptions.pollingInterval; }

this.#pollingInterval = pollingInterval;
}

_getSubscriber(sub: Subscription): Subscriber {
Expand Down

0 comments on commit 7b7be0d

Please sign in to comment.