diff --git a/package.json b/package.json index 13648a8..a9d35c3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@instadapp/utils", - "version": "0.1.7", + "version": "0.1.8", "description": "", "repository": "instadapp/utils", "license": "MIT", diff --git a/src/providers/retry-provider.ts b/src/providers/retry-provider.ts index a2d6819..da31060 100644 --- a/src/providers/retry-provider.ts +++ b/src/providers/retry-provider.ts @@ -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 { const timeouts = [5_000, 10_000] const operation = () => super.perform(method, params)