Skip to content

Commit d3e47f1

Browse files
authored
#37 - fixes testnet provider issue (#38)
* fixes testnet provider issue * fixes typo
1 parent 0b99292 commit d3e47f1

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ jobs:
1212
node-version: 12
1313
- run: npm install
1414
- run: npm run build
15-
- run: npm run test-contract
15+
- run: npm run test:contract

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@safient/contracts",
3-
"version": "0.1.15-alpha",
3+
"version": "0.1.16-alpha",
44
"description": "JavaScript SDK to manage and interact with the safe claims on Safient protocol.",
55
"keywords": [
66
"Web3",
@@ -15,10 +15,10 @@
1515
"compile": "hardhat compile",
1616
"chain": "hardhat node",
1717
"deploy": "hardhat run scripts/deploy.js",
18-
"deploy-sdk": "npm run deploy && npm run build",
19-
"test-contract": "hardhat test --network hardhat",
20-
"test-sdk": "mocha test-sdk/claims.js --timeout 100000",
21-
"tests": "npm run test-contract && npm run test-sdk",
18+
"deploy:sdk": "npm run deploy && npm run build",
19+
"test:contract": "hardhat test --network hardhat",
20+
"test:sdk": "mocha test-sdk/claims.js --timeout 100000",
21+
"test": "npm run test-contract && npm run test-sdk",
2222
"generate": "hardhat generate",
2323
"account": "hardhat account",
2424
"build": "tsc -p tsconfig.json",

src/utils/networks.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const dotenv = require('dotenv');
2-
dotenv.config()
2+
dotenv.config();
33

4+
const INFURA_API_KEY = process.env.INFURA_API_KEY || process.env.REACT_APP_INFURA_API_KEY;
45

56
const networks = {
67
localhost: {
@@ -9,11 +10,11 @@ const networks = {
910
},
1011
mainnet: {
1112
chainId: 1,
12-
url: `https://mainnet.infura.io/v3/${process.env.INFURA_API_KEY}`,
13+
url: `https://mainnet.infura.io/v3/${INFURA_API_KEY}`,
1314
},
1415
kovan: {
1516
chainId: 42,
16-
url: `https://kovan.infura.io/v3/${process.env.INFURA_API_KEY}`,
17+
url: `https://kovan.infura.io/v3/${INFURA_API_KEY}`,
1718

1819
},
1920
polygontestnet: {

0 commit comments

Comments
 (0)