diff --git a/crates/cast/src/cmd/wallet/vanity.rs b/crates/cast/src/cmd/wallet/vanity.rs index 0424b28531c79..a0a58c3cd7851 100644 --- a/crates/cast/src/cmd/wallet/vanity.rs +++ b/crates/cast/src/cmd/wallet/vanity.rs @@ -193,15 +193,16 @@ pub fn find_vanity_address_with_nonce( wallet_generator().find_any(create_nonce_matcher(matcher, nonce)).map(|(key, _)| key.into()) } -/// Creates a nonce matcher function, which takes a reference to a [GeneratedWallet] and returns +/// Creates a matcher function, which takes a reference to a [GeneratedWallet] and returns /// whether it found a match or not by using `matcher`. #[inline] pub fn create_matcher(matcher: T) -> impl Fn(&GeneratedWallet) -> bool { move |(_, addr)| matcher.is_match(addr) } -/// Creates a nonce matcher function, which takes a reference to a [GeneratedWallet] and a nonce and -/// returns whether it found a match or not by using `matcher`. +/// Creates a contract address matcher function that uses the specified nonce. +/// The returned function takes a reference to a [GeneratedWallet] and returns +/// whether the contract address created with the nonce matches using `matcher`. #[inline] pub fn create_nonce_matcher( matcher: T,