@@ -34,7 +34,6 @@ const setGraphConfig = async (args: TaskArguments, hre: HardhatRuntimeEnvironmen
34
34
}
35
35
36
36
task ( 'e2e' , 'Run all e2e tests' )
37
- . addFlag ( 'disableSecureAccounts' , 'Disable secure accounts on GRE' )
38
37
. addOptionalParam ( 'graphConfig' , cliOpts . graphConfig . description )
39
38
. addOptionalParam ( 'l1GraphConfig' , cliOpts . graphConfig . description )
40
39
. addOptionalParam ( 'l2GraphConfig' , cliOpts . graphConfig . description )
@@ -50,34 +49,43 @@ task('e2e', 'Run all e2e tests')
50
49
testFiles = testFiles . filter ( ( file ) => ! [ 'l1' , 'l2' ] . includes ( file . split ( '/' ) [ 3 ] ) )
51
50
}
52
51
52
+ // Disable secure accounts, we don't need them for this task
53
+ hre . config . graph . disableSecureAccounts = true
54
+
53
55
setGraphConfig ( args , hre )
54
56
await hre . run ( TASK_TEST , {
55
57
testFiles : testFiles ,
56
58
} )
57
59
} )
58
60
59
61
task ( 'e2e:config' , 'Run deployment configuration e2e tests' )
60
- . addFlag ( 'disableSecureAccounts' , 'Disable secure accounts on GRE' )
61
62
. addOptionalParam ( 'graphConfig' , cliOpts . graphConfig . description )
62
63
. addOptionalParam ( 'l1GraphConfig' , cliOpts . graphConfig . description )
63
64
. addOptionalParam ( 'l2GraphConfig' , cliOpts . graphConfig . description )
64
65
. addOptionalParam ( 'addressBook' , cliOpts . addressBook . description )
65
66
. setAction ( async ( args , hre : HardhatRuntimeEnvironment ) => {
66
67
const files = new glob . GlobSync ( CONFIG_TESTS ) . found
68
+
69
+ // Disable secure accounts, we don't need them for this task
70
+ hre . config . graph . disableSecureAccounts = true
71
+
67
72
setGraphConfig ( args , hre )
68
73
await hre . run ( TASK_TEST , {
69
74
testFiles : files ,
70
75
} )
71
76
} )
72
77
73
78
task ( 'e2e:init' , 'Run deployment initialization e2e tests' )
74
- . addFlag ( 'disableSecureAccounts' , 'Disable secure accounts on GRE' )
75
79
. addOptionalParam ( 'graphConfig' , cliOpts . graphConfig . description )
76
80
. addOptionalParam ( 'l1GraphConfig' , cliOpts . graphConfig . description )
77
81
. addOptionalParam ( 'l2GraphConfig' , cliOpts . graphConfig . description )
78
82
. addOptionalParam ( 'addressBook' , cliOpts . addressBook . description )
79
83
. setAction ( async ( args , hre : HardhatRuntimeEnvironment ) => {
80
84
const files = new glob . GlobSync ( INIT_TESTS ) . found
85
+
86
+ // Disable secure accounts, we don't need them for this task
87
+ hre . config . graph . disableSecureAccounts = true
88
+
81
89
setGraphConfig ( args , hre )
82
90
await hre . run ( TASK_TEST , {
83
91
testFiles : files ,
0 commit comments