Add OnlineWallet::getNetwork
This commit is contained in:
parent
9b7a9ded56
commit
47651f3681
@ -94,4 +94,5 @@ interface BlockchainConfig {
|
||||
interface OnlineWallet {
|
||||
[Throws=BdkError]
|
||||
constructor(string descriptor, Network network, DatabaseConfig database_config, BlockchainConfig blockchain_config);
|
||||
Network get_network();
|
||||
};
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user