Skip to content

Commit e302101

Browse files
authored
chore(cast): improve vanity help (#8296)
1 parent 3e79baf commit e302101

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crates/cast/bin/cmd/wallet/vanity.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pub type GeneratedWallet = (SigningKey, Address);
1818
/// CLI arguments for `cast wallet vanity`.
1919
#[derive(Clone, Debug, Parser)]
2020
pub 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.{}{}\nAddress: {}\nPrivate Key: 0x{}",
155-
timer.elapsed().as_secs(),
154+
"Successfully found vanity address in {:.3} seconds.{}{}\nAddress: {}\nPrivate Key: 0x{}",
155+
timer.elapsed().as_secs_f64(),
156156
if nonce.is_some() { "\nContract address: " } else { "" },
157157
if nonce.is_some() {
158158
wallet.address().create(nonce.unwrap()).to_checksum(None)

0 commit comments

Comments
 (0)