We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 67a16c4 + 591889d commit 342a6faCopy full SHA for 342a6fa
src/wallet.rs
@@ -290,7 +290,11 @@ except argparse.ArgumentError:
290
/// Loads the hotkey from wallet.path/wallet.name/hotkeys/wallet.hotkey or raises an error.
291
#[getter(hotkey)]
292
pub fn hotkey_py_property(&self, py: Python) -> PyResult<Keypair> {
293
- self.get_hotkey(None, py)
+ if let Some(hotkey) = &self._hotkey {
294
+ Ok(hotkey.clone())
295
+ } else {
296
+ self.get_hotkey(None, py)
297
+ }
298
}
299
300
/// Loads the name from wallet.path/wallet.name/coldkeypub.txt or raises an error.
0 commit comments