diff --git a/hardhat.config.js b/hardhat.config.js index f0cbd56..8ee8926 100644 --- a/hardhat.config.js +++ b/hardhat.config.js @@ -1,18 +1,8 @@ require("@nomiclabs/hardhat-waffle"); -require('dotenv').config(); module.exports = { solidity: "0.7.5", paths: { artifacts: "./app/artifacts", - }, - networks: { - localhost: { - url: "http://localhost:8545" - }, - rinkeby: { - url: process.env.RINKEBY_URL, - accounts: [process.env.PRIVATE_KEY] - } } }; diff --git a/package.json b/package.json index bc48455..72e331c 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,8 @@ "main": "index.js", "scripts": { "test": "npx hardhat test", - "start": "npm run deploy && npx parcel app/index.html", - "deploy": "npx hardhat run scripts/deploy.js --network rinkeby" + "start": "npx hardhat run --network localhost scripts/deploy.js && npx parcel app/index.html", + "deploy": "npx hardhat run --network localhost scripts/deploy.js " }, "keywords": [], "author": "", @@ -15,8 +15,7 @@ "> 5%" ], "dependencies": { - "dotenv": "^8.2.0", - "hardhat": "^2.0.3" + "hardhat": "^2.0.3", }, "devDependencies": { "@nomiclabs/hardhat-ethers": "^2.0.0", @@ -25,6 +24,7 @@ "chai": "^4.2.0", "ethereum-waffle": "^3.2.0", "ethers": "^5.0.19", + "parcel": "^2.3.2", "sass": "^1.29.0" } }