Skip to content

Commit

Permalink
remove require("dotenv") to prevent error
Browse files Browse the repository at this point in the history
  • Loading branch information
jp-ryuji committed Mar 28, 2023
1 parent fb04f7a commit f338f44
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions section7-kickstart-solc-0.8.9/ethereum/factory.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import web3 from "./web3";
import CampaignFactory from "./build/CampaignFactory.json";

require("dotenv").config();

const instance = new web3.eth.Contract(
CampaignFactory.abi,
process.env.CAMPAIGN_FACTORY_ADDRESS,
Expand Down
2 changes: 0 additions & 2 deletions section7-kickstart-solc-0.8.9/ethereum/web3.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import Web3 from "web3";

require("dotenv").config();

let web3;

if (typeof window !== "undefined" && typeof window.ethereum !== "undefined") {
Expand Down

0 comments on commit f338f44

Please sign in to comment.