@@ -138,13 +138,13 @@ impl CliCommand<()> for InitTool {
138
138
profile_config. rest_url =
139
139
Some ( "https://full.testnet.movementinfra.xyz/v1" . to_string ( ) ) ;
140
140
profile_config. faucet_url =
141
- Some ( "https://faucet.testnet.movementinfra.xyz/v1 " . to_string ( ) ) ;
141
+ Some ( "https://faucet.testnet.movementinfra.xyz" . to_string ( ) ) ;
142
142
} ,
143
143
Network :: Devnet => {
144
144
profile_config. rest_url =
145
- Some ( "https://aptos .devnet.inola.movementlabs .xyz/v1" . to_string ( ) ) ;
145
+ Some ( "https://full .devnet.movementinfra .xyz/v1" . to_string ( ) ) ;
146
146
profile_config. faucet_url =
147
- Some ( "https://faucet.devnet.inola.movementlabs .xyz" . to_string ( ) ) ;
147
+ Some ( "https://faucet.devnet.movementinfra .xyz" . to_string ( ) ) ;
148
148
} ,
149
149
Network :: Local => {
150
150
profile_config. rest_url = Some ( "http://localhost:8080" . to_string ( ) ) ;
@@ -328,11 +328,9 @@ impl CliCommand<()> for InitTool {
328
328
}
329
329
} else if account_exists {
330
330
eprintln ! ( "Account {} has been already found onchain" , address) ;
331
- }
332
- else if network == Network :: Mainnet {
331
+ } else if network == Network :: Mainnet {
333
332
eprintln ! ( "Account {} does not exist, you will need to create and fund the account by transferring funds from another account" , address) ;
334
- }
335
- else {
333
+ } else {
336
334
eprintln ! ( "Account {} has been initialized locally, but you must transfer coins to it to create the account onchain" , address) ;
337
335
}
338
336
@@ -452,17 +450,13 @@ pub enum Network {
452
450
453
451
impl Display for Network {
454
452
fn fmt ( & self , f : & mut Formatter < ' _ > ) -> std:: fmt:: Result {
455
- write ! (
456
- f,
457
- "{}" ,
458
- match self {
459
- Network :: Mainnet => "mainnet" ,
460
- Network :: Testnet => "bardock+testnet" ,
461
- Network :: Devnet => "devnet" ,
462
- Network :: Local => "local" ,
463
- Network :: Custom => "custom" ,
464
- }
465
- )
453
+ write ! ( f, "{}" , match self {
454
+ Network :: Mainnet => "mainnet" ,
455
+ Network :: Testnet => "bardock+testnet" ,
456
+ Network :: Devnet => "devnet" ,
457
+ Network :: Local => "local" ,
458
+ Network :: Custom => "custom" ,
459
+ } )
466
460
}
467
461
}
468
462
@@ -478,7 +472,7 @@ impl FromStr for Network {
478
472
"custom" => Self :: Custom ,
479
473
str => {
480
474
return Err ( CliError :: CommandArgumentError ( format ! (
481
- "Invalid network {}. Must be one of [testnet, local, custom]" ,
475
+ "Invalid network {}. Must be one of [testnet, devnet, local, custom]" ,
482
476
str
483
477
) ) ) ;
484
478
} ,
0 commit comments