mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-25 05:05:03 +00:00
Fix the browser node and update demo script (#5613)
* Fix browser node * Fix readme
This commit is contained in:
1 parent
ec4d8b8bca
commit
309fdf3b3f
3 files changed
+5
-7
No files matched your search
@@ -1,9 +1,6 @@
|
||||
# How to run this demo
|
||||
|
||||
```sh
|
||||
cargo install wasm-pack # If necessary
|
||||
|
||||
wasm-pack build --target web --out-dir ./browser-demo/pkg --no-typescript --release ./.. -- --no-default-features --features "browser"
|
||||
|
||||
xdg-open index.html
|
||||
cargo install wasm-bindgen # If necessary
|
||||
./build.sh
|
||||
```
|
||||
@@ -1,3 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
wasm-pack build --target web --out-dir ./browser-demo/pkg --no-typescript --release ./.. -- --no-default-features --features "browser"
|
||||
cargo +nightly build --release -p node-cli --target wasm32-unknown-unknown --no-default-features --features browser -Z features=itarget
|
||||
wasm-bindgen ../../../../target/wasm32-unknown-unknown/release/node_cli.wasm --out-dir pkg --target web
|
||||
python -m http.server 8000
|
||||
@@ -49,7 +49,7 @@ where
|
||||
format!("{} (Browser)", name),
|
||||
"unknown",
|
||||
Default::default(),
|
||||
&std::env::current_dir().expect("current directory must exist"),
|
||||
&std::path::PathBuf::new(),
|
||||
);
|
||||
network.boot_nodes = chain_spec.boot_nodes().to_vec();
|
||||
network.transport = TransportConfig::Normal {
|
||||
|
||||
Reference in new issue
Block a user