Add OnlineWallet::getNetwork

This commit is contained in:
artfuldev
2021-10-15 00:48:48 +05:30
parent 9b7a9ded56
commit 47651f3681
2 changed files with 5 additions and 0 deletions

View File

@@ -117,6 +117,10 @@ impl OnlineWallet {
)?);
Ok(OnlineWallet { wallet })
}
fn get_network(&self) -> Network {
self.wallet.lock().unwrap().network()
}
}
uniffi::deps::static_assertions::assert_impl_all!(OfflineWallet: Sync, Send);