Răsfoiți Sursa

chore: use .yaml extension for FUNDING file

chore: pass mnemonic directly in .solcover.js
Paul Razvan Berg 4 ani în urmă
părinte
comite
f4cd769e48
2 a modificat fișierele cu 1 adăugiri și 7 ștergeri
  1. 0 0
      .github/FUNDING.yaml
  2. 1 7
      .solcover.js

+ 0 - 0
.github/FUNDING.yml → .github/FUNDING.yaml


+ 1 - 7
.solcover.js

@@ -1,11 +1,5 @@
 const shell = require("shelljs");
 
-// The environment variables are loaded in hardhat.config.ts
-const mnemonic = process.env.MNEMONIC;
-if (!mnemonic) {
-  throw new Error("Please set your MNEMONIC in a .env file");
-}
-
 module.exports = {
   istanbulReporter: ["html", "lcov"],
   onCompileComplete: async function (_config) {
@@ -17,7 +11,7 @@ module.exports = {
     shell.rm("-rf", "./typechain");
   },
   providerOptions: {
-    mnemonic,
+    mnemonic: process.env.MNEMONIC,
   },
   skipFiles: ["mocks", "test"],
 };