From ccfc591147b9f563069c992b32c06b9be751238e Mon Sep 17 00:00:00 2001 From: Siddharth Suresh Date: Fri, 29 Jul 2022 17:22:35 -0700 Subject: [PATCH] fix cli usage --- docs/examples/hello-world.mdx | 6 +++--- docs/examples/increment.mdx | 4 ++-- docs/tutorials/build-and-run.mdx | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/examples/hello-world.mdx b/docs/examples/hello-world.mdx index cf4af955..8c6f5c2a 100644 --- a/docs/examples/hello-world.mdx +++ b/docs/examples/hello-world.mdx @@ -166,9 +166,9 @@ WASM using it. ```sh soroban-cli invoke \ - --file ../target/wasm32-unknown-unknown/release/soroban_hello_world_contract.wasm \ - --contract-id 1 - --fn hello + --wasm ../target/wasm32-unknown-unknown/release/soroban_hello_world_contract.wasm \ + --id 1 \ + --fn hello \ --arg friend ``` diff --git a/docs/examples/increment.mdx b/docs/examples/increment.mdx index 14296bf4..4ade0319 100644 --- a/docs/examples/increment.mdx +++ b/docs/examples/increment.mdx @@ -179,8 +179,8 @@ WASM using it. ```sh soroban-cli invoke \ - --file ../target/wasm32-unknown-unknown/release/soroban_increment_contract.wasm \ - --contract-id 1 + --wasm ../target/wasm32-unknown-unknown/release/soroban_increment_contract.wasm \ + --id 1 \ --fn increment ``` diff --git a/docs/tutorials/build-and-run.mdx b/docs/tutorials/build-and-run.mdx index 3218de05..245b41f3 100644 --- a/docs/tutorials/build-and-run.mdx +++ b/docs/tutorials/build-and-run.mdx @@ -28,9 +28,9 @@ function with a single argument `"friend"`. ```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 ```