Skip to content

Commit

Permalink
revert lib versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Lykhoyda committed Dec 13, 2024
1 parent 5d2ea0f commit f83727f
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 30 deletions.
24 changes: 12 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ codegen-units = 1

[workspace.dependencies]
## Web dependencies
wasm-bindgen = "0.2.99"
wasm-bindgen = "0.2.93"
js-sys = "0.3.70"
wasm-bindgen-futures = "0.4.49"
wasm-bindgen-futures = "0.4.43"
web-sys = { version = "0.3.70", features = [
"console",
] }
wasm-bindgen-rayon = { version = "1.2.2" }
wasm-bindgen-rayon = { version = "1.2.1" }

# WASM specific dependencies
tracing-web = { version = "0.1.3" }
Expand Down Expand Up @@ -81,7 +81,7 @@ byte-unit = { version = "5.1.4", features = ["byte"] }


[patch.crates-io]
zip32 = { git = "https://github.com/zcash/zip32.git" }
zip32 = { git = "https://github.com/zcash/zip32.git"}
# TODO: See: https://github.com/RReverser/wasm-bindgen-rayon/pull/12
wasm-bindgen-rayon = { git = "https://github.com/9SMTM6/wasm-bindgen-rayon", rev = "d1816e5bc2bf928ff5442355c04500a381d66a41" }
# TODO: Remove these once the PRs are merged
Expand Down
23 changes: 9 additions & 14 deletions packages/e2e-tests/src/index.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
import initWasm, { initThreadPool, WebWallet } from "@webzjs/webz-wallet";

import initWasm, * as WebZWallet from "@webzjs/webz-wallet";
import initKeys, * as WebZKeys from "@webzjs/webz-keys";
import initRequests, * as WebZRequests from "@webzjs/webz-requests";
import initWasm, * as WebZWallet from '@webzjs/webz-wallet';
import { initThreadPool, WebWallet } from '@webzjs/webz-wallet';
import initKeys, * as WebZKeys from '@webzjs/webz-keys';
import initRequests, * as WebZRequests from '@webzjs/webz-requests';

window.WebZWallet = WebZWallet;
window.WebZKeys = WebZKeys;
window.WebZRequests = WebZRequests;

const N_THREADS = 10;
const MAINNET_LIGHTWALLETD_PROXY = "https://zcash-mainnet.chainsafe.dev";
const MAINNET_LIGHTWALLETD_PROXY = 'https://zcash-mainnet.chainsafe.dev';

async function loadPage() {
await new Promise((resolve) => {
window.addEventListener("load", resolve);
window.addEventListener('load', resolve);
});

// Code to executed once the page has loaded
Expand All @@ -22,14 +21,10 @@ async function loadPage() {
await initRequests();
await initThreadPool(N_THREADS);

window.webWallet = new WebWallet(
"main",
MAINNET_LIGHTWALLETD_PROXY,
1
);
window.webWallet = new WebWallet('main', MAINNET_LIGHTWALLETD_PROXY, 1);
window.initialized = true;
console.log("WebWallet initialized");
console.log('WebWallet initialized');
console.log(webWallet);
}

loadPage();
loadPage();

0 comments on commit f83727f

Please sign in to comment.