diff --git a/hardhat.config.js b/hardhat.config.js index 20cfb46..a62b120 100644 --- a/hardhat.config.js +++ b/hardhat.config.js @@ -1,4 +1,3 @@ -require('dotenv').config(); require('@nomiclabs/hardhat-waffle'); const fs = require('fs'); const { network } = require('./constants'); diff --git a/package-lock.json b/package-lock.json index 33c1d40..e5543a1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@safient/contracts", - "version": "0.1.15-alpha", + "version": "0.1.18-alpha", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@safient/contracts", - "version": "0.1.15-alpha", + "version": "0.1.18-alpha", "dependencies": { "@ethersproject/address": "^5.2.0", "@ethersproject/bignumber": "^5.2.0", @@ -21,7 +21,6 @@ "chai": "^4.3.4", "chai-as-promised": "^7.1.1", "did-jwt": "^5.6.2", - "dotenv": "^10.0.0", "ethereum-waffle": "^3.3.0", "ethereumjs-wallet": "0.6.5", "ethers": "^5.4.3", @@ -3207,14 +3206,6 @@ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" }, - "node_modules/dotenv": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-10.0.0.tgz", - "integrity": "sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==", - "engines": { - "node": ">=10" - } - }, "node_modules/ecc-jsbn": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", @@ -18954,11 +18945,6 @@ } } }, - "dotenv": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-10.0.0.tgz", - "integrity": "sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==" - }, "ecc-jsbn": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", diff --git a/package.json b/package.json index 4822fbd..e269b6f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@safient/contracts", - "version": "0.1.17-alpha", + "version": "0.1.18-alpha", "description": "JavaScript SDK to manage and interact with the safe claims on Safient protocol.", "keywords": [ "Web3", @@ -62,7 +62,6 @@ "chai": "^4.3.4", "chai-as-promised": "^7.1.1", "did-jwt": "^5.6.2", - "dotenv": "^10.0.0", "ethereum-waffle": "^3.3.0", "ethereumjs-wallet": "0.6.5", "ethers": "^5.4.3", diff --git a/src/utils/networks.js b/src/utils/networks.js index 2314e45..3545b0e 100644 --- a/src/utils/networks.js +++ b/src/utils/networks.js @@ -1,5 +1,4 @@ -const dotenv = require('dotenv'); -dotenv.config(); + const INFURA_API_KEY = process.env.INFURA_API_KEY || process.env.REACT_APP_INFURA_API_KEY; diff --git a/src/utils/networks.json b/src/utils/networks.json index 757e1ca..3d6fc37 100644 --- a/src/utils/networks.json +++ b/src/utils/networks.json @@ -38,7 +38,7 @@ "chainId": 80001, "addresses": { "AutoAppealableArbitrator": "0xf54D6b97749ECD28F9EbF836Ed9cE0C387a2f0A1", - "SafientMain": "0xccA53824ce8944a3cB7b21139bd177DEEe6e27C0" + "SafientMain": "0x8C2FA3dE952f5A1c463af0Fb42a9A812D3Ffe9e3" } } } \ No newline at end of file diff --git a/test-sdk/claims.js b/test-sdk/claims.js index 63b70e3..950ac12 100644 --- a/test-sdk/claims.js +++ b/test-sdk/claims.js @@ -2,8 +2,6 @@ const { ethers } = require('hardhat'); const { JsonRpcProvider } = require('@ethersproject/providers'); const chai = require('chai'); -require('dotenv').config(); - const expect = chai.expect; chai.use(require('chai-as-promised'));