Skip to content

Commit f9f98cc

Browse files
Fixed invoke example #1177 (#1269)
The invoke command used the `--wasm` parameter, which is not supported.
1 parent df645f3 commit f9f98cc

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

docs/build/smart-contracts/example-contracts/custom-types.mdx

+8-5
Original file line numberDiff line numberDiff line change
@@ -248,16 +248,17 @@ target/wasm32-unknown-unknown/release/soroban_custom_types_contract.wasm
248248

249249
## Run the Contract
250250

251-
If you have [`stellar-cli`] installed, you can invoke contract functions in the Wasm using it.
251+
If you have [`stellar-cli`] installed, you can [deploy] and invoke contract function.
252252

253253
<Tabs groupId="platform" defaultValue={getPlatform()}>
254254

255255
<TabItem value="unix" label="macOS/Linux">
256256

257257
```sh
258258
stellar contract invoke \
259-
--wasm target/wasm32-unknown-unknown/release/soroban_custom_types_contract.wasm \
260-
--id 1 \
259+
--id CACDYF3CYMJEJTIVFESQYZTN67GO2R5D5IUABTCUG3HXQSRXCSOROBAN \
260+
--source alice \
261+
--network testnet \
261262
-- \
262263
increment \
263264
--incr 5
@@ -269,8 +270,9 @@ stellar contract invoke \
269270

270271
```powershell
271272
stellar contract invoke `
272-
--wasm target/wasm32-unknown-unknown/release/soroban_custom_types_contract.wasm `
273-
--id 1 `
273+
--id CACDYF3CYMJEJTIVFESQYZTN67GO2R5D5IUABTCUG3HXQSRXCSOROBAN `
274+
--source alice `
275+
--network testnet `
274276
-- `
275277
increment `
276278
--incr 5
@@ -299,3 +301,4 @@ STATE,"{""count"":25,""last_incr"":15}"
299301
```
300302

301303
[`stellar-cli`]: ../getting-started/setup.mdx#install-the-stellar-cli
304+
[deploy]: ../getting-started/deploy-to-testnet

0 commit comments

Comments
 (0)