@@ -372,38 +372,6 @@ describe('[IExecConfig]', () => {
372372 network . getPlugin ( 'org.ethers.plugins.network.Ens' ) . address ,
373373 ) . toBe ( '0x5f5B93fca68c9C79318d1F3868A354EE67D8c006' ) ;
374374 } ) ;
375- describe ( 'allowExperimentalNetworks' , ( ) => {
376- const experimentalNetworkRpcUrl = getChainDefaults ( 421614 , {
377- allowExperimentalNetworks : true ,
378- } ) . host ;
379-
380- test ( 'fail resolving config with experimental chains when allowExperimentalNetworks is not enabled' , async ( ) => {
381- const config = new IExecConfig ( {
382- ethProvider : experimentalNetworkRpcUrl ,
383- } ) ;
384-
385- await expect ( config . resolveContractsClient ( ) ) . rejects . toThrow (
386- new Error (
387- 'hubAddress option not set and no default value for your chain 421614' ,
388- ) ,
389- ) ;
390- } ) ;
391- test ( 'allows experimental chains when allowExperimentalNetworks is enabled' , async ( ) => {
392- const config = new IExecConfig (
393- { ethProvider : experimentalNetworkRpcUrl } ,
394- { allowExperimentalNetworks : true } ,
395- ) ;
396- const { provider, signer, chainId } =
397- await config . resolveContractsClient ( ) ;
398- expect ( signer ) . toBeUndefined ( ) ;
399- expect ( provider ) . toBeDefined ( ) ;
400- expect ( provider ) . toBeInstanceOf ( JsonRpcProvider ) ;
401- expect ( chainId ) . toBe ( '421614' ) ;
402- const network = await provider . getNetwork ( ) ;
403- expect ( network . chainId ) . toBe ( 421614n ) ;
404- expect ( network . name ) . toBe ( 'arbitrum-sepolia' ) ;
405- } ) ;
406- } ) ;
407375 } ) ;
408376
409377 describe ( 'signer provider from private key' , ( ) => {
0 commit comments