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