File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -34,9 +34,13 @@ export const sleep = (ms: number) => new Promise(resolve => setTimeout(resolve,
3434
3535// Cleanup function to ensure automining is turned back on
3636export async function cleanup ( ) {
37- const publicClient = await hre . viem . getPublicClient ( ) ;
38- await publicClient . transport . request ( { method : "evm_setAutomine" , params : [ true ] } ) ;
39- console . log ( "\nCleaning up: turning automining back on..." ) ;
37+ try {
38+ const publicClient = await hre . viem . getPublicClient ( ) ;
39+ await publicClient . transport . request ( { method : "evm_setAutomine" , params : [ true ] } ) ;
40+ console . log ( "\nCleaning up: turning automining back on..." ) ;
41+ } catch ( error ) {
42+ console . error ( "Error cleaning up:" , error ) ;
43+ }
4044}
4145
4246export const QUESTIONS_FOR_OO : string [ ] = [
You can’t perform that action at this time.
0 commit comments