in cli call
This commit is contained in:
parent
a37647b3d1
commit
32fd35843f
@ -511,7 +511,7 @@ impl Configuration {
|
|||||||
let a = Address::from_str(clean_0x(&d)).unwrap_or_else(|_| {
|
let a = Address::from_str(clean_0x(&d)).unwrap_or_else(|_| {
|
||||||
die!("{}: Invalid address for --unlock. Must be 40 hex characters, without the 0x at the beginning.", d)
|
die!("{}: Invalid address for --unlock. Must be 40 hex characters, without the 0x at the beginning.", d)
|
||||||
});
|
});
|
||||||
if passwords.iter().find(|p| account_service.unlock_account(&a, p).is_ok()).is_none() {
|
if passwords.iter().find(|p| account_service.unlock_account_no_expire(&a, p).is_ok()).is_none() {
|
||||||
die!("No password given to unlock account {}. Pass the password using `--password`.", a);
|
die!("No password given to unlock account {}. Pass the password using `--password`.", a);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -154,7 +154,6 @@ impl AccountService {
|
|||||||
pub fn unlock_account_no_expire(&self, account: &Address, pass: &str) -> Result<(), EncryptedHashMapError> {
|
pub fn unlock_account_no_expire(&self, account: &Address, pass: &str) -> Result<(), EncryptedHashMapError> {
|
||||||
self.secret_store.write().unwrap().unlock_account_with_expiration(account, pass, None)
|
self.secret_store.write().unwrap().unlock_account_with_expiration(account, pass, None)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user