Skip to content

Commit

Permalink
Merge pull request #799 from multiversx/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
popenta committed Jan 15, 2024
2 parents 8243a17 + e0d5ead commit b8f98fa
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/sdk-and-tools/sdk-py/sdk-py-cookbook.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ transaction = Transaction(
gas_limit=50000,
chain_id="D",
nonce=77,
amount=1000000000000000000
value=1000000000000000000
)
print(transaction.__dict__)
Expand All @@ -132,7 +132,7 @@ transaction = Transaction(
gas_limit=50000,
chain_id="D",
nonce=77,
amount=1000000000000000000,
value=1000000000000000000,
data=b"for the book"
)
Expand All @@ -144,7 +144,7 @@ Alternatively, we can create an EGLD transfer using a **transaction factory** (a
```
from multiversx_sdk_core.transaction_factories import TransactionsFactoryConfig
config = TransactionsFactoryConfig(chain_id="D")
config = TransactionsFactoryConfig("D")
```

The **transaction factory** is parametrized at instantiation, and the transaction is obtained by invoking the `create_transaction...` method:
Expand Down Expand Up @@ -294,6 +294,7 @@ print(relayed_tx.__dict__)
from multiversx_sdk_core.transaction_builders.relayed_v2_builder import RelayedTransactionV2Builder
from multiversx_sdk_wallet.user_signer import UserSigner
signer = UserSigner.from_pem_file(Path("./testwallets/bob.pem"))
inner_tx = Transaction(
Expand Down Expand Up @@ -548,13 +549,13 @@ signer = UserSigner.from_pem_file(Path("./testwallets/alice.pem"))
Signing a transaction:

```
from multiversx_sdk_core import Transaction
from multiversx_sdk_core import Transaction, TransactionComputer
tx = Transaction(
nonce=90,
sender="erd1qyu5wthldzr8wx5c9ucg8kjagg0jfs53s8nr3zpz3hypefsdd8ssycr6th",
receiver="erd1spyavw0956vq68xj8y4tenjpq2wd5a9p2c6j8gsz7ztyrnpxrruqzu66jx",
amount=1000000000000000000,
value=1000000000000000000,
gas_limit=50000,
chain_id="D"
)
Expand Down Expand Up @@ -741,5 +742,4 @@ tx_on_network = provider.get_transaction("9270a6879b682a7b310c659f58b641ccdd5f08
print("Status:", tx_on_network.status)
print("Is completed:", tx_on_network.is_completed)
```

<!-- END_NOTEBOOK -->
10 changes: 10 additions & 0 deletions docs/sdk-and-tools/troubleshooting/rust-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@ If you've installed Rust using `rustup`:
rustup self uninstall
```

If you've installed Rust using `brew`:

```bash
brew uninstall rust
```

:::note
We never recommend installing Rust using `brew`, especially because it makes it non-trivial to switch between different Rust versions.
:::

If you've installed Rust using `mxpy` with a version older than `v9`:

```bash
Expand Down

0 comments on commit b8f98fa

Please sign in to comment.