From a5f878f7134c7a167ca11e8c7dcadd5e0ef502a8 Mon Sep 17 00:00:00 2001 From: Jacob Hite <1085644+jrhite@users.noreply.github.com> Date: Wed, 2 Mar 2022 20:12:35 +0700 Subject: [PATCH 1/5] point deploy script to localhost --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index bc48455..7335ded 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "test": "npx hardhat test", "start": "npm run deploy && npx parcel app/index.html", - "deploy": "npx hardhat run scripts/deploy.js --network rinkeby" + "deploy": "npx hardhat run scripts/deploy.js --network localhost" }, "keywords": [], "author": "", From 5a66d09454fdea01a5ba912913bf1fd32d5dac00 Mon Sep 17 00:00:00 2001 From: Jacob Hite <1085644+jrhite@users.noreply.github.com> Date: Thu, 3 Mar 2022 07:28:03 +0700 Subject: [PATCH 2/5] remove localhost from hardhat config --- hardhat.config.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/hardhat.config.js b/hardhat.config.js index f0cbd56..7ea032d 100644 --- a/hardhat.config.js +++ b/hardhat.config.js @@ -5,14 +5,5 @@ 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] - } } }; From 96901fff7995664d6a47c6f2222e2eb59e52c482 Mon Sep 17 00:00:00 2001 From: Jacob Hite <1085644+jrhite@users.noreply.github.com> Date: Thu, 3 Mar 2022 07:40:47 +0700 Subject: [PATCH 3/5] remove dotenv --- hardhat.config.js | 1 - package.json | 1 - 2 files changed, 2 deletions(-) diff --git a/hardhat.config.js b/hardhat.config.js index 7ea032d..8ee8926 100644 --- a/hardhat.config.js +++ b/hardhat.config.js @@ -1,5 +1,4 @@ require("@nomiclabs/hardhat-waffle"); -require('dotenv').config(); module.exports = { solidity: "0.7.5", diff --git a/package.json b/package.json index 7335ded..9a25e9f 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,6 @@ "> 5%" ], "dependencies": { - "dotenv": "^8.2.0", "hardhat": "^2.0.3" }, "devDependencies": { From 525072762acea9313b37a6037aa948fd8fb90c38 Mon Sep 17 00:00:00 2001 From: Jacob Hite <1085644+jrhite@users.noreply.github.com> Date: Thu, 3 Mar 2022 08:43:24 +0700 Subject: [PATCH 4/5] fix minor typos in package.json --- package.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 9a25e9f..e42b2a0 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 localhost" + "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,7 +15,8 @@ "> 5%" ], "dependencies": { - "hardhat": "^2.0.3" + "hardhat": "^2.0.3", + "parcel": "^2.3.2" }, "devDependencies": { "@nomiclabs/hardhat-ethers": "^2.0.0", From be15539f63777ac0f0f1750844fcb604545de050 Mon Sep 17 00:00:00 2001 From: Jacob Hite <1085644+jrhite@users.noreply.github.com> Date: Thu, 3 Mar 2022 09:54:05 +0700 Subject: [PATCH 5/5] move parcel to devDependencies --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e42b2a0..72e331c 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,6 @@ ], "dependencies": { "hardhat": "^2.0.3", - "parcel": "^2.3.2" }, "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" } }