Skip to content

Commit

Permalink
#37 - fixes testnet provider issue (#38)
Browse files Browse the repository at this point in the history
* fixes testnet provider issue

* fixes typo
  • Loading branch information
koshikraj authored Apr 26, 2022
1 parent 0b99292 commit d3e47f1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ jobs:
node-version: 12
- run: npm install
- run: npm run build
- run: npm run test-contract
- run: npm run test:contract
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@safient/contracts",
"version": "0.1.15-alpha",
"version": "0.1.16-alpha",
"description": "JavaScript SDK to manage and interact with the safe claims on Safient protocol.",
"keywords": [
"Web3",
Expand All @@ -15,10 +15,10 @@
"compile": "hardhat compile",
"chain": "hardhat node",
"deploy": "hardhat run scripts/deploy.js",
"deploy-sdk": "npm run deploy && npm run build",
"test-contract": "hardhat test --network hardhat",
"test-sdk": "mocha test-sdk/claims.js --timeout 100000",
"tests": "npm run test-contract && npm run test-sdk",
"deploy:sdk": "npm run deploy && npm run build",
"test:contract": "hardhat test --network hardhat",
"test:sdk": "mocha test-sdk/claims.js --timeout 100000",
"test": "npm run test-contract && npm run test-sdk",
"generate": "hardhat generate",
"account": "hardhat account",
"build": "tsc -p tsconfig.json",
Expand Down
7 changes: 4 additions & 3 deletions src/utils/networks.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const dotenv = require('dotenv');
dotenv.config()
dotenv.config();

const INFURA_API_KEY = process.env.INFURA_API_KEY || process.env.REACT_APP_INFURA_API_KEY;

const networks = {
localhost: {
Expand All @@ -9,11 +10,11 @@ const networks = {
},
mainnet: {
chainId: 1,
url: `https://mainnet.infura.io/v3/${process.env.INFURA_API_KEY}`,
url: `https://mainnet.infura.io/v3/${INFURA_API_KEY}`,
},
kovan: {
chainId: 42,
url: `https://kovan.infura.io/v3/${process.env.INFURA_API_KEY}`,
url: `https://kovan.infura.io/v3/${INFURA_API_KEY}`,

},
polygontestnet: {
Expand Down

0 comments on commit d3e47f1

Please sign in to comment.