From b9a214ddbf8cd6366eecaa721cbdfcd2da48c90b Mon Sep 17 00:00:00 2001 From: Victor Lopez Date: Fri, 17 Nov 2023 02:26:55 +0100 Subject: [PATCH 1/2] fix: update default snap template --- README.md | 14 +++++++++++++- src/interface.rs | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7920dec..976f69c 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ This utility creates [Metamask Snaps](https://metamask.io/snaps/) for Sovereign - [Git](https://git-scm.com/) - [Rust](https://www.rust-lang.org/tools/install) -- Rust WASI target: `rustup target add wasm32-wasi` +- [Rust WASI](https://github.com/bytecodealliance/wasmtime/blob/183cb0f2f8b0298f0bc9fd1140aaef4a0fb0368c/docs/WASI-tutorial.md#from-rust) - [Yarn](https://yarnpkg.com/) - [binaryen](https://github.com/WebAssembly/binaryen) - [wabt](https://github.com/WebAssembly/wabt) @@ -18,6 +18,18 @@ This utility creates [Metamask Snaps](https://metamask.io/snaps/) for Sovereign cargo install --git https://github.com/Sovereign-Labs/sov-snap-generator --tag "v0.1.0" ``` +Also, check if the `wasm32-wasi` target is installed: + +```bash +rustup target list --installed | grep wasm32-wasi +``` + +If the command above yields no output, proceed with the target installation: + +```bash +rustup target add wasm32-wasi +``` + ## Usage #### Example module diff --git a/src/interface.rs b/src/interface.rs index cebfd6d..926e8b2 100644 --- a/src/interface.rs +++ b/src/interface.rs @@ -283,7 +283,7 @@ impl Interface { rl, args, Some("Insert the branch of the snap template"), - Some("v0.1.1"), + Some("v0.1.2"), ) } }; From 6042336f02623c9f93945466933bc81096ec0464 Mon Sep 17 00:00:00 2001 From: Victor Lopez Date: Fri, 17 Nov 2023 02:27:55 +0100 Subject: [PATCH 2/2] update readme tag version --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 976f69c..7a85b32 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ This utility creates [Metamask Snaps](https://metamask.io/snaps/) for Sovereign ## Installation ```bash -cargo install --git https://github.com/Sovereign-Labs/sov-snap-generator --tag "v0.1.0" +cargo install --git https://github.com/Sovereign-Labs/sov-snap-generator --tag "v0.1.1" ``` Also, check if the `wasm32-wasi` target is installed: