Add Device::get_mut_sp_wallet

This commit is contained in:
Sosthene 2025-08-25 01:03:29 +02:00
parent aaaec47c23
commit 922cf2aa53
2 changed files with 5 additions and 1 deletions

View File

@ -38,6 +38,10 @@ impl Device {
&self.sp_wallet &self.sp_wallet
} }
pub fn get_mut_sp_wallet(&mut self) -> &mut SpWallet {
&mut self.sp_wallet
}
pub fn get_sp_client(&self) -> &SpClient { pub fn get_sp_client(&self) -> &SpClient {
self.sp_wallet.get_sp_client() self.sp_wallet.get_sp_client()
} }

View File

@ -1,6 +1,6 @@
use crate::{pcd::Member, process::Process}; use crate::{pcd::Member, process::Process};
use serde::de::Error; use serde::de::Error;
use serde::{de, Deserialize, Deserializer, Serialize, Serializer}; use serde::{Deserialize, Deserializer, Serialize, Serializer};
use sp_client::bitcoin::hex::{DisplayHex, FromHex}; use sp_client::bitcoin::hex::{DisplayHex, FromHex};
use sp_client::bitcoin::OutPoint; use sp_client::bitcoin::OutPoint;
use std::collections::{BTreeMap, HashMap}; use std::collections::{BTreeMap, HashMap};