@@ -18,7 +18,7 @@ pub type GeneratedWallet = (SigningKey, Address);
1818/// CLI arguments for `cast wallet vanity`.
1919#[ derive( Clone , Debug , Parser ) ]
2020pub struct VanityArgs {
21- /// Prefix for the vanity address .
21+ /// Prefix regex pattern or hex string .
2222 #[ arg(
2323 long,
2424 required_unless_present = "ends_with" ,
@@ -27,7 +27,7 @@ pub struct VanityArgs {
2727 ) ]
2828 pub starts_with : Option < String > ,
2929
30- /// Suffix for the vanity address .
30+ /// Suffix regex pattern or hex string .
3131 #[ arg( long, value_parser = HexAddressValidator , value_name = "HEX" ) ]
3232 pub ends_with : Option < String > ,
3333
@@ -151,8 +151,8 @@ impl VanityArgs {
151151 }
152152
153153 println ! (
154- "Successfully found vanity address in {} seconds.{}{}\n Address: {}\n Private Key: 0x{}" ,
155- timer. elapsed( ) . as_secs ( ) ,
154+ "Successfully found vanity address in {:.3 } seconds.{}{}\n Address: {}\n Private Key: 0x{}" ,
155+ timer. elapsed( ) . as_secs_f64 ( ) ,
156156 if nonce. is_some( ) { "\n Contract address: " } else { "" } ,
157157 if nonce. is_some( ) {
158158 wallet. address( ) . create( nonce. unwrap( ) ) . to_checksum( None )
0 commit comments