Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KABBOUCHI committed Jul 5, 2022
1 parent 5ca4f31 commit cee1361
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@instadapp/utils",
"version": "0.1.7",
"version": "0.1.8",
"description": "",
"repository": "instadapp/utils",
"license": "MIT",
Expand Down
6 changes: 6 additions & 0 deletions src/providers/retry-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ export function retryOperation (
}

export class JsonRpcRetryProvider extends JsonRpcProvider {
constructor (url: string) {
super(url)

Object.setPrototypeOf(this, JsonRpcRetryProvider.prototype)
}

public perform (method: string, params: any): Promise<any> {
const timeouts = [5_000, 10_000]
const operation = () => super.perform(method, params)
Expand Down

0 comments on commit cee1361

Please sign in to comment.