Skip to content

Commit

Permalink
Merge pull request #45 from curvefi/fix/reinit-contracts-update
Browse files Browse the repository at this point in the history
Fix/reinit-contracts-update
  • Loading branch information
Macket authored May 16, 2022
2 parents 17d738b + 454ff2a commit 898312b
Show file tree
Hide file tree
Showing 2 changed files with 3 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": "@curvefi/api",
"version": "1.25.0",
"version": "1.25.1",
"description": "JavaScript library for curve.fi",
"main": "lib/index.js",
"author": "Macket",
Expand Down
2 changes: 2 additions & 0 deletions src/curve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<void> {
this.contracts = {};

// JsonRpc provider
if (providerType.toLowerCase() === 'JsonRpc'.toLowerCase()) {
providerSettings = providerSettings as { url: string, privateKey: string };
Expand Down

0 comments on commit 898312b

Please sign in to comment.