|
@@ -1,5 +1,11 @@
|
|
|
const shell = require("shelljs");
|
|
|
|
|
|
+/* The environment variables are loaded in buidler.config.ts */
|
|
|
+const mnemonic = process.env.MNEMONIC;
|
|
|
+if (!mnemonic) {
|
|
|
+ throw new Error("Please set your MNEMONIC in a .env file");
|
|
|
+}
|
|
|
+
|
|
|
module.exports = {
|
|
|
istanbulReporter: ["html"],
|
|
|
mocha: {
|
|
@@ -13,5 +19,8 @@ module.exports = {
|
|
|
shell.rm("-rf", "./artifacts");
|
|
|
shell.rm("-rf", "./typechain");
|
|
|
},
|
|
|
+ providerOptions: {
|
|
|
+ mnemonic,
|
|
|
+ },
|
|
|
skipFiles: ["mocks", "test"],
|
|
|
};
|