Skip to content

Commit 47ae543

Browse files
Revert "Improve error when user doesn't have a wallet (#2231)"
This reverts commit 7a5e604.
1 parent 9330e11 commit 47ae543

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

account_manager/src/validator/create.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -137,18 +137,6 @@ pub fn cli_run<T: EthSpec>(
137137
let count: Option<usize> = clap_utils::parse_optional(matches, COUNT_FLAG)?;
138138
let at_most: Option<usize> = clap_utils::parse_optional(matches, AT_MOST_FLAG)?;
139139

140-
// The command will always fail if the wallet dir does not exist.
141-
if !wallet_base_dir.exists() {
142-
return Err(format!(
143-
"No wallet directory at {:?}. Use the `lighthouse --network {} {} {} {}` command to create a wallet",
144-
wallet_base_dir,
145-
matches.value_of("network").unwrap_or("<NETWORK>"),
146-
crate::CMD,
147-
crate::wallet::CMD,
148-
crate::wallet::create::CMD
149-
));
150-
}
151-
152140
ensure_dir_exists(&validator_dir)?;
153141
ensure_dir_exists(&secrets_dir)?;
154142

0 commit comments

Comments
 (0)