Skip to content

Commit

Permalink
fix: update default snap template
Browse files Browse the repository at this point in the history
  • Loading branch information
vlopes11 committed Nov 17, 2023
1 parent 193fa5b commit b9a214d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ impl Interface {
rl,
args,
Some("Insert the branch of the snap template"),
Some("v0.1.1"),
Some("v0.1.2"),
)
}
};
Expand Down

0 comments on commit b9a214d

Please sign in to comment.