Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add more info on maketx call args #1413

Merged
merged 8 commits into from
Dec 18, 2023
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions docs/explanation/gno-tooling/cli/gnokey.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ gnokey maketx addpkg \

### `call`

This subcommand lets you call a public function.
This subcommand lets you call a public function on a Realm.
leohhhn marked this conversation as resolved.
Show resolved Hide resolved

```bash
# Register
Expand Down Expand Up @@ -208,13 +208,17 @@ gnokey maketx call \

#### **makeCallTx Options**

| Name | Type | Description |
| --------- | ---------- | -------------------------------- |
| `send` | String | The amount of coins to send. |
| `pkgpath` | String | The package path (required). |
| `func` | String | The contract to call (required). |
| `args` | String \[] | The arguments of the contract. |

| Name | Type | Description |
|-----------|--------|------------------------------------------------------------------------------------------------------------------------------------------------------|
| `send` | String | The amount of coins to send. |
| `pkgpath` | String | The package path (required). |
| `func` | String | The contract to call (required). |
| `args` | String | An argument of the function being called. Can be used multiple times in a single `call` command to accommodate possible multiple function arguments. |

:::info
leohhhn marked this conversation as resolved.
Show resolved Hide resolved
As of December 2023, only primitive types are supported as `-args` parameters.
leohhhn marked this conversation as resolved.
Show resolved Hide resolved
A workaround for this currently is to pass arguments as a delimited string, and parse them within the Realm.
leohhhn marked this conversation as resolved.
Show resolved Hide resolved
:::

### `send`

Expand Down
Loading