Skip to content

Commit fe3a0cc

Browse files
committed
use strongly typed Address instead of String
1 parent e4548a8 commit fe3a0cc

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/cli/subcommands/mpool_cmd.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ pub enum MpoolCommands {
3535
/// Get the current nonce for an address
3636
Nonce {
3737
/// Address to check nonce for
38-
address: String,
38+
address: Address,
3939
},
4040
/// Print mempool stats
4141
Stat {
@@ -281,7 +281,6 @@ impl MpoolCommands {
281281
Ok(())
282282
}
283283
Self::Nonce { address } => {
284-
let address = Address::from_str(&address)?;
285284
let nonce = MpoolGetNonce::call(&client, (address,)).await?;
286285
println!("{nonce}");
287286

0 commit comments

Comments
 (0)