@@ -3288,19 +3288,19 @@ mod tests {
3288
3288
r#"
3289
3289
[profile.default]
3290
3290
[rpc_endpoints]
3291
- polygonMumbai = "https://polygon-mumbai .g.alchemy.com/v2/${_RESOLVE_RPC_ALIAS}"
3291
+ polygonAmoy = "https://polygon-amoy .g.alchemy.com/v2/${_RESOLVE_RPC_ALIAS}"
3292
3292
"# ,
3293
3293
) ?;
3294
3294
let mut config = Config :: load ( ) . unwrap ( ) ;
3295
- config. eth_rpc_url = Some ( "polygonMumbai " . to_string ( ) ) ;
3295
+ config. eth_rpc_url = Some ( "polygonAmoy " . to_string ( ) ) ;
3296
3296
assert ! ( config. get_rpc_url( ) . unwrap( ) . is_err( ) ) ;
3297
3297
3298
3298
jail. set_env ( "_RESOLVE_RPC_ALIAS" , "123455" ) ;
3299
3299
3300
3300
let mut config = Config :: load ( ) . unwrap ( ) ;
3301
- config. eth_rpc_url = Some ( "polygonMumbai " . to_string ( ) ) ;
3301
+ config. eth_rpc_url = Some ( "polygonAmoy " . to_string ( ) ) ;
3302
3302
assert_eq ! (
3303
- "https://polygon-mumbai .g.alchemy.com/v2/123455" ,
3303
+ "https://polygon-amoy .g.alchemy.com/v2/123455" ,
3304
3304
config. get_rpc_url( ) . unwrap( ) . unwrap( )
3305
3305
) ;
3306
3306
@@ -3550,7 +3550,7 @@ mod tests {
3550
3550
3551
3551
[etherscan]
3552
3552
optimism = { key = "https://etherscan-optimism.com/" }
3553
- mumbai = { key = "https://etherscan-mumbai .com/" }
3553
+ amoy = { key = "https://etherscan-amoy .com/" }
3554
3554
"# ,
3555
3555
) ?;
3556
3556
@@ -3559,10 +3559,10 @@ mod tests {
3559
3559
let optimism = config. get_etherscan_api_key ( Some ( NamedChain :: Optimism . into ( ) ) ) ;
3560
3560
assert_eq ! ( optimism, Some ( "https://etherscan-optimism.com/" . to_string( ) ) ) ;
3561
3561
3562
- config. etherscan_api_key = Some ( "mumbai " . to_string ( ) ) ;
3562
+ config. etherscan_api_key = Some ( "amoy " . to_string ( ) ) ;
3563
3563
3564
- let mumbai = config. get_etherscan_api_key ( Some ( NamedChain :: PolygonMumbai . into ( ) ) ) ;
3565
- assert_eq ! ( mumbai , Some ( "https://etherscan-mumbai .com/" . to_string( ) ) ) ;
3564
+ let amoy = config. get_etherscan_api_key ( Some ( NamedChain :: PolygonAmoy . into ( ) ) ) ;
3565
+ assert_eq ! ( amoy , Some ( "https://etherscan-amoy .com/" . to_string( ) ) ) ;
3566
3566
3567
3567
Ok ( ( ) )
3568
3568
} ) ;
@@ -3577,17 +3577,17 @@ mod tests {
3577
3577
[profile.default]
3578
3578
3579
3579
[etherscan]
3580
- mumbai = { key = "https://etherscan-mumbai .com/", chain = 80001 }
3580
+ amoy = { key = "https://etherscan-amoy .com/", chain = 80002 }
3581
3581
"# ,
3582
3582
) ?;
3583
3583
3584
3584
let config = Config :: load ( ) . unwrap ( ) ;
3585
3585
3586
- let mumbai = config
3587
- . get_etherscan_config_with_chain ( Some ( NamedChain :: PolygonMumbai . into ( ) ) )
3586
+ let amoy = config
3587
+ . get_etherscan_config_with_chain ( Some ( NamedChain :: PolygonAmoy . into ( ) ) )
3588
3588
. unwrap ( )
3589
3589
. unwrap ( ) ;
3590
- assert_eq ! ( mumbai . key, "https://etherscan-mumbai .com/" . to_string( ) ) ;
3590
+ assert_eq ! ( amoy . key, "https://etherscan-amoy .com/" . to_string( ) ) ;
3591
3591
3592
3592
Ok ( ( ) )
3593
3593
} ) ;
@@ -3602,18 +3602,18 @@ mod tests {
3602
3602
[profile.default]
3603
3603
3604
3604
[etherscan]
3605
- mumbai = { key = "https://etherscan-mumbai .com/", chain = 80001 , url = "https://verifier-url.com/"}
3605
+ amoy = { key = "https://etherscan-amoy .com/", chain = 80002 , url = "https://verifier-url.com/"}
3606
3606
"# ,
3607
3607
) ?;
3608
3608
3609
3609
let config = Config :: load ( ) . unwrap ( ) ;
3610
3610
3611
- let mumbai = config
3612
- . get_etherscan_config_with_chain ( Some ( NamedChain :: PolygonMumbai . into ( ) ) )
3611
+ let amoy = config
3612
+ . get_etherscan_config_with_chain ( Some ( NamedChain :: PolygonAmoy . into ( ) ) )
3613
3613
. unwrap ( )
3614
3614
. unwrap ( ) ;
3615
- assert_eq ! ( mumbai . key, "https://etherscan-mumbai .com/" . to_string( ) ) ;
3616
- assert_eq ! ( mumbai . api_url, "https://verifier-url.com/" . to_string( ) ) ;
3615
+ assert_eq ! ( amoy . key, "https://etherscan-amoy .com/" . to_string( ) ) ;
3616
+ assert_eq ! ( amoy . api_url, "https://verifier-url.com/" . to_string( ) ) ;
3617
3617
3618
3618
Ok ( ( ) )
3619
3619
} ) ;
@@ -3626,23 +3626,23 @@ mod tests {
3626
3626
"foundry.toml" ,
3627
3627
r#"
3628
3628
[profile.default]
3629
- eth_rpc_url = "mumbai "
3629
+ eth_rpc_url = "amoy "
3630
3630
3631
3631
[etherscan]
3632
- mumbai = { key = "https://etherscan-mumbai .com/" }
3632
+ amoy = { key = "https://etherscan-amoy .com/" }
3633
3633
3634
3634
[rpc_endpoints]
3635
- mumbai = "https://polygon-mumbai .g.alchemy.com/v2/mumbai "
3635
+ amoy = "https://polygon-amoy .g.alchemy.com/v2/amoy "
3636
3636
"# ,
3637
3637
) ?;
3638
3638
3639
3639
let config = Config :: load ( ) . unwrap ( ) ;
3640
3640
3641
- let mumbai = config. get_etherscan_config_with_chain ( None ) . unwrap ( ) . unwrap ( ) ;
3642
- assert_eq ! ( mumbai . key, "https://etherscan-mumbai .com/" . to_string( ) ) ;
3641
+ let amoy = config. get_etherscan_config_with_chain ( None ) . unwrap ( ) . unwrap ( ) ;
3642
+ assert_eq ! ( amoy . key, "https://etherscan-amoy .com/" . to_string( ) ) ;
3643
3643
3644
- let mumbai_rpc = config. get_rpc_url ( ) . unwrap ( ) . unwrap ( ) ;
3645
- assert_eq ! ( mumbai_rpc , "https://polygon-mumbai .g.alchemy.com/v2/mumbai " ) ;
3644
+ let amoy_rpc = config. get_rpc_url ( ) . unwrap ( ) . unwrap ( ) ;
3645
+ assert_eq ! ( amoy_rpc , "https://polygon-amoy .g.alchemy.com/v2/amoy " ) ;
3646
3646
Ok ( ( ) )
3647
3647
} ) ;
3648
3648
}
0 commit comments