diff --git a/docs/getting-started/quick-start.mdx b/docs/getting-started/quick-start.mdx index 4fa57b96..57af8613 100644 --- a/docs/getting-started/quick-start.mdx +++ b/docs/getting-started/quick-start.mdx @@ -13,7 +13,7 @@ first Soroban contract. Start by creating a new Rust library using the `cargo new` command. ```sh -cargo new --lib [project-name] +cargo new --lib first-project ``` Open the `Cargo.toml`, it should look something like this: @@ -149,9 +149,9 @@ WASM using it. ```sh soroban-cli invoke \ - --file target/wasm32-unknown-unknown/release/first-project.wasm \ - --contract-id 1 - --fn hello + --wasm target/wasm32-unknown-unknown/release/first-project.wasm \ + --id 1 \ + --fn hello \ --arg friend ``` diff --git a/docs/getting-started/setup.mdx b/docs/getting-started/setup.mdx index b857fac6..57fc0bdb 100644 --- a/docs/getting-started/setup.mdx +++ b/docs/getting-started/setup.mdx @@ -26,6 +26,15 @@ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh If you use Windows, or need an alternative method of installing Rust, check out: https://www.rust-lang.org/tools/install + +## Install WASM target platform + +You'll need to install the `wasm32-unknown-unknown` target platform in your machine: + +```sh +rustup target add wasm32-unknown-unknown +``` + ## Configure an Editor Many editors have support for Rust. Visit the following link to find out how to