Skip to content

Commit 905a2b6

Browse files
committed
compiles again
1 parent 137f38c commit 905a2b6

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

tests/message-board-sync.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ wasm_bindgen_test::wasm_bindgen_test_configure!(run_in_browser);
33

44
use std::sync::Once;
55
use webz_core::bindgen::wallet::WebWallet;
6-
use zcash_client_backend::sync::run;
7-
use zcash_client_memory::MemBlockCache;
86
use zcash_keys::keys::UnifiedFullViewingKey;
97
use zcash_primitives::consensus::Network;
108
use zcash_primitives::constants;
@@ -38,9 +36,10 @@ async fn test_message_board() {
3836
#[cfg(not(feature = "sync2"))]
3937
{
4038
tracing::info!("Syncing wallet with our sync impl");
41-
w.sync(|scanned_to, tip| {
42-
println!("Scanned: {}/{}", scanned_to, tip);
43-
})
39+
w.sync(&js_sys::Function::new_with_args(
40+
"scanned_to, tip",
41+
"console.log('Scanned: ', scanned_to, '/', tip)",
42+
))
4443
.await
4544
.unwrap();
4645
}

tests/simple-sync-and-send.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ async fn test_get_and_scan_range() {
2727

2828
#[cfg(not(feature = "sync2"))]
2929
{
30-
tracing::info!("Syncing wallet with our sync impl");
31-
w.sync(|scanned_to, tip| {
32-
println!("Scanned: {}/{}", scanned_to, tip);
33-
})
30+
w.sync(&js_sys::Function::new_with_args(
31+
"scanned_to, tip",
32+
"console.log('Scanned: ', scanned_to, '/', tip)",
33+
))
3434
.await
3535
.unwrap();
3636
}

0 commit comments

Comments
 (0)