We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents aaed418 + fde4794 commit 67a16c4Copy full SHA for 67a16c4
src/wallet.rs
@@ -274,7 +274,11 @@ except argparse.ArgumentError:
274
/// Loads the coldkey from wallet.path/wallet.name/coldkey or raises an error.
275
#[getter(coldkey)]
276
pub fn coldkey_py_property(&self, py: Python) -> PyResult<Keypair> {
277
- self.get_coldkey(None, py)
+ if let Some(coldkey) = &self._coldkey {
278
+ Ok(coldkey.clone())
279
+ } else {
280
+ self.get_coldkey(None, py)
281
+ }
282
}
283
284
/// Loads the coldkeypub from wallet.path/wallet.name/coldkeypub.txt or raises an error.
0 commit comments