Simplify Kotlin Wallet api

This commit is contained in:
Steve Myers committed 2021-06-24 15:00:00 -07:00
1 parent 110dfbd13c
commit 757113c002
15 files changed
+125 -117

No files matched your search

+2 -3
View File
@@ -129,13 +129,12 @@ fn get_wallet_ok<'lt>(wallet_result: &'lt WalletResult) -> Option<Box<WalletRef<
.raw
.as_ref()
.ok()
.map(|w| Box::new(WalletRef { raw: w}))
.map(|w| Box::new(WalletRef { raw: w }))
}
#[ffi_export]
fn sync_wallet<'lt>(wallet_ref: &'lt WalletRef<'lt>) -> Box<VoidResult> {
let void_result = wallet_ref
.raw.sync(log_progress(), Some(100));
let void_result = wallet_ref.raw.sync(log_progress(), Some(100));
Box::new(VoidResult { raw: void_result })
}