Skip to content

Commit

Permalink
fix typos in doc (#1219)
Browse files Browse the repository at this point in the history
  • Loading branch information
hattizai authored Nov 29, 2023
1 parent 721d0f5 commit e9a7767
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/src/calling-contracts/other-contracts.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Calling other contracts

If your contract method is calling other contracts you will have to add the appropriate `Inputs` and `Outputs` to your transaction. For your convenience, the `ContractCallHandler` provides methods that prepare those inputs and outpus for you. You have two methods that you can use: `with_contracts(&[&contract_instance, ...])` and `with_contract_ids(&[&contract_id, ...])`.
If your contract method is calling other contracts you will have to add the appropriate `Inputs` and `Outputs` to your transaction. For your convenience, the `ContractCallHandler` provides methods that prepare those inputs and outputs for you. You have two methods that you can use: `with_contracts(&[&contract_instance, ...])` and `with_contract_ids(&[&contract_id, ...])`.

`with_contracts(&[&contract_instance, ...])` requires contract instances that were created using the `abigen` macro. When setting the external contracts with this method, logs and require revert errors originating from the external contract can be propagated and decoded by the calling contract.

Expand Down
2 changes: 1 addition & 1 deletion docs/src/calling-contracts/read-only.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ You can do this with the SDK. Instead of `.call()`ing the method, use `.simulate
{{#include ../../../examples/contracts/src/lib.rs:simulate}}
```

<!-- This section should explain what happens if you try a read-only call on a method that changes stae -->
<!-- This section should explain what happens if you try a read-only call on a method that changes state -->
<!-- simulate:example:start -->
Note that if you use `.simulate()` on a method that _does_ change the state of the blockchain, it won't work properly; it will just `dry-run` it.

Expand Down
2 changes: 1 addition & 1 deletion docs/src/connecting/external-node.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ In the code example, we connected a new provider to the Testnet node and created
>
> Once the assets have been transferred to the wallet, you can reuse it in other tests by providing the private key!
>
> In addition to the faucet, there is a block explorer for the Tesnet at
> In addition to the faucet, there is a block explorer for the Testnet at
>
> [block-explorer](https://fuellabs.github.io/block-explorer-v2)
Expand Down

0 comments on commit e9a7767

Please sign in to comment.