@@ -608,7 +608,7 @@ describe('tor support', () => {
608608 const transport = http ( 'https://mockapi.com/rpc' , {
609609 fetchFn : mockRegularFetch . fetch ,
610610 tor : {
611- snowflakeUrl : 'https ://snowflake.example.com/' ,
611+ snowflakeUrl : 'wss ://snowflake.example.com/' ,
612612 filter : [ 'eth_getBalance' , 'eth_sendTransaction' ] , // Only these methods use Tor
613613 sharedClient : mockTorFetch as any ,
614614 } ,
@@ -643,7 +643,7 @@ describe('tor support', () => {
643643 const transport = http ( 'https://mockapi.com/rpc' , {
644644 fetchFn : mockRegularFetch . fetch ,
645645 tor : {
646- snowflakeUrl : 'https ://snowflake.example.com/' ,
646+ snowflakeUrl : 'wss ://snowflake.example.com/' ,
647647 filter : ( body ) => body . some ( ( req ) => req . method . includes ( 'Balance' ) ) , // Function-based filter
648648 sharedClient : mockTorFetch as any ,
649649 } ,
@@ -672,7 +672,7 @@ describe('tor support', () => {
672672 batch : true ,
673673 fetchFn : mockRegularFetch . fetch ,
674674 tor : {
675- snowflakeUrl : 'https ://snowflake.example.com/' ,
675+ snowflakeUrl : 'wss ://snowflake.example.com/' ,
676676 filter : [ 'eth_getBalance' ] , // Only balance calls use Tor
677677 sharedClient : mockTorFetch as any ,
678678 } ,
@@ -712,7 +712,7 @@ describe('tor support', () => {
712712
713713 const transport = http ( 'https://mockapi.com/rpc' , {
714714 tor : {
715- snowflakeUrl : 'https ://snowflake.example.com/' ,
715+ snowflakeUrl : 'wss ://snowflake.example.com/' ,
716716 filter : [ 'eth_getBalance' ] ,
717717 sharedClient : mockTorFetch as any ,
718718 } ,
0 commit comments