Skip to content

Commit d8dd8d8

Browse files
schmirezdac
authored andcommitted
Abort change_keypers.js if DEPLOY_CONF is not set
1 parent bac369d commit d8dd8d8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

contracts/scripts/change-keypers.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ process.chdir(path.dirname(__dirname)); // allow calling the script from anywher
1616
const hre = require("hardhat");
1717

1818
async function main() {
19+
if (process.env.DEPLOY_CONF === undefined) {
20+
console.error("please set DEPLOY_CONF environment variable");
21+
return;
22+
}
1923
// TODO can we get access to the hre in a script like this?
2024
// TODO use a different json file to determine the keyper changes
2125
const deployConf = JSON.parse(fs.readFileSync(process.env.DEPLOY_CONF));

0 commit comments

Comments
 (0)