diff --git a/package.json b/package.json index e917ca48..d66be440 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@curvefi/api", - "version": "1.25.0", + "version": "1.25.1", "description": "JavaScript library for curve.fi", "main": "lib/index.js", "author": "Macket", diff --git a/src/curve.ts b/src/curve.ts index e11a7d40..111e38c1 100644 --- a/src/curve.ts +++ b/src/curve.ts @@ -124,6 +124,8 @@ class Curve implements ICurve { providerSettings: { url?: string, privateKey?: string } | { externalProvider: ethers.providers.ExternalProvider } | { network?: Networkish, apiKey?: string }, options: { gasPrice?: number, maxFeePerGas?: number, maxPriorityFeePerGas?: number, chainId?: number } = {} // gasPrice in Gwei ): Promise { + this.contracts = {}; + // JsonRpc provider if (providerType.toLowerCase() === 'JsonRpc'.toLowerCase()) { providerSettings = providerSettings as { url: string, privateKey: string };