@@ -34,7 +34,6 @@ const setGraphConfig = async (args: TaskArguments, hre: HardhatRuntimeEnvironmen
3434}
3535
3636task ( 'e2e' , 'Run all e2e tests' )
37- . addFlag ( 'disableSecureAccounts' , 'Disable secure accounts on GRE' )
3837 . addOptionalParam ( 'graphConfig' , cliOpts . graphConfig . description )
3938 . addOptionalParam ( 'l1GraphConfig' , cliOpts . graphConfig . description )
4039 . addOptionalParam ( 'l2GraphConfig' , cliOpts . graphConfig . description )
@@ -50,34 +49,43 @@ task('e2e', 'Run all e2e tests')
5049 testFiles = testFiles . filter ( ( file ) => ! [ 'l1' , 'l2' ] . includes ( file . split ( '/' ) [ 3 ] ) )
5150 }
5251
52+ // Disable secure accounts, we don't need them for this task
53+ hre . config . graph . disableSecureAccounts = true
54+
5355 setGraphConfig ( args , hre )
5456 await hre . run ( TASK_TEST , {
5557 testFiles : testFiles ,
5658 } )
5759 } )
5860
5961task ( 'e2e:config' , 'Run deployment configuration e2e tests' )
60- . addFlag ( 'disableSecureAccounts' , 'Disable secure accounts on GRE' )
6162 . addOptionalParam ( 'graphConfig' , cliOpts . graphConfig . description )
6263 . addOptionalParam ( 'l1GraphConfig' , cliOpts . graphConfig . description )
6364 . addOptionalParam ( 'l2GraphConfig' , cliOpts . graphConfig . description )
6465 . addOptionalParam ( 'addressBook' , cliOpts . addressBook . description )
6566 . setAction ( async ( args , hre : HardhatRuntimeEnvironment ) => {
6667 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+
6772 setGraphConfig ( args , hre )
6873 await hre . run ( TASK_TEST , {
6974 testFiles : files ,
7075 } )
7176 } )
7277
7378task ( 'e2e:init' , 'Run deployment initialization e2e tests' )
74- . addFlag ( 'disableSecureAccounts' , 'Disable secure accounts on GRE' )
7579 . addOptionalParam ( 'graphConfig' , cliOpts . graphConfig . description )
7680 . addOptionalParam ( 'l1GraphConfig' , cliOpts . graphConfig . description )
7781 . addOptionalParam ( 'l2GraphConfig' , cliOpts . graphConfig . description )
7882 . addOptionalParam ( 'addressBook' , cliOpts . addressBook . description )
7983 . setAction ( async ( args , hre : HardhatRuntimeEnvironment ) => {
8084 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+
8189 setGraphConfig ( args , hre )
8290 await hre . run ( TASK_TEST , {
8391 testFiles : files ,
0 commit comments