Skip to content

Commit 342a6fa

Browse files
committed
Merge branch 'main-rust' into cam/no-excepts
2 parents 67a16c4 + 591889d commit 342a6fa

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
@@ -290,7 +290,11 @@ except argparse.ArgumentError:
290290
/// Loads the hotkey from wallet.path/wallet.name/hotkeys/wallet.hotkey or raises an error.
291291
#[getter(hotkey)]
292292
pub fn hotkey_py_property(&self, py: Python) -> PyResult<Keypair> {
293-
self.get_hotkey(None, py)
293+
if let Some(hotkey) = &self._hotkey {
294+
Ok(hotkey.clone())
295+
} else {
296+
self.get_hotkey(None, py)
297+
}
294298
}
295299

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

0 commit comments

Comments
 (0)