File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -20,13 +20,24 @@ async function main() {
20
20
console . error ( "please set DEPLOY_CONF environment variable" ) ;
21
21
return ;
22
22
}
23
+
24
+ if ( process . env . KEYPER_SET_INDEX === undefined ) {
25
+ console . error ( "please set KEYPER_SET_INDEX environment variable" ) ;
26
+ return ;
27
+ }
28
+
29
+ const keyperSetIndex = parseInt ( process . env . KEYPER_SET_INDEX ) ;
30
+
23
31
// TODO can we get access to the hre in a script like this?
24
32
// TODO use a different json file to determine the keyper changes
25
33
const deployConf = JSON . parse ( fs . readFileSync ( process . env . DEPLOY_CONF ) ) ;
26
34
27
- const newKeyperSet = deployConf . keypers ?. at ( 1 ) ;
35
+ const newKeyperSet = deployConf . keypers ?. at ( keyperSetIndex ) ;
28
36
if ( newKeyperSet === undefined ) {
29
- console . error ( "no updated keyper set defined in DEPLOY_CONF" ) ;
37
+ console . error (
38
+ "no updated keyper set defined in DEPLOY_CONF at index %s" ,
39
+ keyperSetIndex
40
+ ) ;
30
41
return ;
31
42
}
32
43
You can’t perform that action at this time.
0 commit comments