From 99d57331cc745262be71f205294dc23f6874ea7e Mon Sep 17 00:00:00 2001 From: morkeltry Date: Sun, 13 Oct 2024 15:17:29 +0100 Subject: [PATCH] get seed and API key from .env; fix no-unused-vars being an error. It's not an error, it's a warn ffs. --- packages/hardhat/.eslintrc.json | 2 +- packages/hardhat/hardhat.config.ts | 2 ++ packages/hardhat/package.json | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/hardhat/.eslintrc.json b/packages/hardhat/.eslintrc.json index 9a8415d..4020c1b 100644 --- a/packages/hardhat/.eslintrc.json +++ b/packages/hardhat/.eslintrc.json @@ -5,7 +5,7 @@ "parser": "@typescript-eslint/parser", "extends": ["plugin:prettier/recommended", "plugin:@typescript-eslint/recommended"], "rules": { - "@typescript-eslint/no-unused-vars": ["error"], + "@typescript-eslint/no-unused-vars": ["warn"], "@typescript-eslint/no-explicit-any": ["off"], "prettier/prettier": [ "warn", diff --git a/packages/hardhat/hardhat.config.ts b/packages/hardhat/hardhat.config.ts index 672ee9c..296fd11 100644 --- a/packages/hardhat/hardhat.config.ts +++ b/packages/hardhat/hardhat.config.ts @@ -14,6 +14,8 @@ import "hardhat-deploy-ethers"; // You can get your own at https://dashboard.alchemyapi.io const providerApiKey = process.env.ALCHEMY_API_KEY || "oKxs-03sij-U_N0iOlrSsZFr29-IqbuF"; // If not set, it uses the hardhat account 0 private key. + +const { MNEMONIC } = process.env; const deployerPrivateKey = process.env.DEPLOYER_PRIVATE_KEY ?? "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"; // If not set, it uses ours Etherscan default API key. diff --git a/packages/hardhat/package.json b/packages/hardhat/package.json index dd7f58b..696d65d 100644 --- a/packages/hardhat/package.json +++ b/packages/hardhat/package.json @@ -19,7 +19,7 @@ "dependencies": { "@openzeppelin/contracts": "~5.0.2", "@typechain/ethers-v6": "~0.5.1", - "dotenv": "~16.0.3", + "dotenv": "^16.4.5", "envfile": "~6.18.0", "qrcode": "~1.5.1" },