Skip to content

Commit

Permalink
Merge pull request #983 from multiversx/mxpy-autocomplete-fix
Browse files Browse the repository at this point in the history
fix mxpy shell completion
  • Loading branch information
popenta authored Sep 26, 2024
2 parents 099d509 + 41942ce commit 3e5486a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
26 changes: 25 additions & 1 deletion docs/sdk-and-tools/sdk-py/installing-mxpy.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,31 @@ To check that **mxpy** installed successfully you can run the following command:
mxpy --version
```

Additionally, if you'd like to have shell completion for `bash` and `zsh`, run the following command, then restart the shell:
As of version `v9.7.0`, **mxpy** includes support for shell completion on both Linux and macOS. To get started, first ensure that `pip` is installed by running the following command:

```sh
pip3 --version
```

If `pip` is not installed, we can install it on **Linux** with:

```sh
sudo apt install python3-pip
```

For **macOS** users, install `pip` by executing:

```sh
python3 -m ensurepip
```

Once `pip` is installed, proceed by installing the required package with:

```sh
pip3 install argcomplete
```

Finally, activate shell completion with this command:

```sh
activate-global-python-argcomplete
Expand Down
2 changes: 1 addition & 1 deletion docs/sdk-and-tools/sdk-py/mxpy-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ In this section we'll see how we can send `Relayed V3` transactions using `mxpy`

### Creating the inner transactions

We can simply create the inner transactions the same way we did above, by using the `mxpy tx new` command. The only difference is that we'll have to provide an additional argument called `--inner-transactions-outfile`, which represents the file where the inner transactions are saved to be later used by the relayer. To keep it simple, we'll send 1 EGLD from Alice to Bob and Carol will be the relayer. To create the EGLD transfer transaction from Alice to Bob we run the following command:
We can simply create the inner transactions the same way we did above, by using the `mxpy tx new` command. The only difference is that we'll have to provide an additional argument called `--inner-transactions-outfile`, which represents the file where the inner transactions are saved to be later used by the relayer. To keep it simple, we'll send 1 EGLD from Alice to Bob, and Carol will be the relayer. To create the EGLD transfer transaction from Alice to Bob, we run the following command:

```sh
mxpy tx new --pem ~/multiversx-sdk/testwallets/latest/users/alice.pem --recall-nonce \
Expand Down

0 comments on commit 3e5486a

Please sign in to comment.