Skip to content

Commit 67a16c4

Browse files
committed
Merge branch 'main-rust' into cam/no-excepts
2 parents aaed418 + fde4794 commit 67a16c4

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
@@ -274,7 +274,11 @@ except argparse.ArgumentError:
274274
/// Loads the coldkey from wallet.path/wallet.name/coldkey or raises an error.
275275
#[getter(coldkey)]
276276
pub fn coldkey_py_property(&self, py: Python) -> PyResult<Keypair> {
277-
self.get_coldkey(None, py)
277+
if let Some(coldkey) = &self._coldkey {
278+
Ok(coldkey.clone())
279+
} else {
280+
self.get_coldkey(None, py)
281+
}
278282
}
279283

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

0 commit comments

Comments
 (0)