Skip to content

Commit fde4794

Browse files
committed
wallet.coldkey.ss58_address doesn't ask typing pass after waller.unlock_coldkey()
1 parent 6953184 commit fde4794

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/wallet.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,11 @@ except argparse.ArgumentError:
273273
/// Loads the coldkey from wallet.path/wallet.name/coldkey or raises an error.
274274
#[getter(coldkey)]
275275
pub fn coldkey_py_property(&self, py: Python) -> PyResult<Keypair> {
276-
self.get_coldkey(None, py)
276+
if let Some(coldkey) = &self._coldkey {
277+
Ok(coldkey.clone())
278+
} else {
279+
self.get_coldkey(None, py)
280+
}
277281
}
278282

279283
/// Loads the coldkeypub from wallet.path/wallet.name/coldkeypub.txt or raises an error.

0 commit comments

Comments
 (0)