From bddfcf4e4335aed200b69012795738549feb64e8 Mon Sep 17 00:00:00 2001 From: zerosnacks Date: Wed, 19 Nov 2025 12:16:37 +0100 Subject: [PATCH 1/2] add --interactive flag Co-authored-by: Dipanshu Singh <58115782+dipanshuhappy@users.noreply.github.com> --- crates/wallets/src/wallet_multi/mod.rs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/crates/wallets/src/wallet_multi/mod.rs b/crates/wallets/src/wallet_multi/mod.rs index bb492d7331c23..7e098002a26e0 100644 --- a/crates/wallets/src/wallet_multi/mod.rs +++ b/crates/wallets/src/wallet_multi/mod.rs @@ -93,15 +93,13 @@ pub struct MultiWalletOpts { /// Open an interactive prompt to enter your private key. /// /// Takes a value for the number of keys to enter. - #[arg( - long, - short, - help_heading = "Wallet options - raw", - default_value = "0", - value_name = "NUM" - )] + #[arg(long, help_heading = "Wallet options - raw", default_value = "0", value_name = "NUM")] pub interactives: u32, + /// Open an interactive prompt to enter your private key. + #[arg(long, short, help_heading = "Wallet options - raw", conflicts_with = "interactives")] + pub interactive: bool, + /// Use the provided private keys. #[arg(long, help_heading = "Wallet options - raw", value_name = "RAW_PRIVATE_KEYS")] #[builder(default = "None")] @@ -264,6 +262,9 @@ impl MultiWalletOpts { if let Some(mnemonics) = self.mnemonics()? { signers.extend(mnemonics); } + if self.interactive { + pending.push(PendingSigner::Interactive); + } if self.interactives > 0 { pending.extend(std::iter::repeat_n( PendingSigner::Interactive, From 3abf8a61e878ec855df052f9bc6845271ffcba99 Mon Sep 17 00:00:00 2001 From: zerosnacks Date: Wed, 19 Nov 2025 12:25:33 +0100 Subject: [PATCH 2/2] fix incomplete list command --- crates/cast/src/cmd/wallet/list.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/cast/src/cmd/wallet/list.rs b/crates/cast/src/cmd/wallet/list.rs index 2e899247d7aff..c492e9238d37a 100644 --- a/crates/cast/src/cmd/wallet/list.rs +++ b/crates/cast/src/cmd/wallet/list.rs @@ -70,6 +70,7 @@ impl ListArgs { .gcp(self.gcp || (self.all && gcp_env_vars_set())) .turnkey(self.turnkey || self.all) .interactives(0) + .interactive(false) .build() .expect("build multi wallet");