Skip to content

Commit b48bfe3

Browse files
committed
Add requestRate throttle to calls.
1 parent 39f5ce1 commit b48bfe3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src.ts/providers/abstract-provider.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,6 +1026,8 @@ export class AbstractProvider implements Provider {
10261026
const transaction = <PerformActionTransaction>copyRequest(tx);
10271027

10281028
try {
1029+
const delay = this.#getDelay();
1030+
if (delay) { await stall(delay); }
10291031
return hexlify(await this._perform({ method: "call", transaction, blockTag }));
10301032

10311033
} catch (error: any) {

0 commit comments

Comments
 (0)