We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f706813 commit 04f0687Copy full SHA for 04f0687
2 files changed
src/commands.rs
@@ -478,6 +478,8 @@ pub enum HwiSubCommand {
478
Devices,
479
/// Register hardware wallet
480
Register,
481
+ /// Generate address
482
+ Address,
483
}
484
485
/// Subcommands available in REPL mode.
src/handlers.rs
@@ -631,6 +631,10 @@ pub async fn handle_offline_wallet_subcommand(
631
//TODO: return status of wallet registration
632
Ok(json!({ "hmac": hmac }))
633
634
+ HwiSubCommand::Address => {
635
+ let address = wallet.next_unused_address(KeychainKind::External);
636
+ Ok(json!({ "address": address.address }))
637
+ }
638
},
639
640
0 commit comments