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: use correct method names #1146

Merged
merged 1 commit into from
Sep 29, 2023
Merged
Changes from all 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
4 changes: 2 additions & 2 deletions docs/src/running-scripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ Script calls provide the same logging functions, `decode_logs()` and `decode_log

Scripts use the same interfaces for setting external contracts as [contract methods](./calling-contracts/other-contracts.md).

Below is an example that uses `set_contracts(&[&contract_instance, ...])`.
Below is an example that uses `with_contracts(&[&contract_instance, ...])`.

```rust,ignore
{{#include ../../packages/fuels/tests/logs.rs:external_contract}}
```

And this is an example that uses `set_contract_ids(&[&contract_id, ...])`.
And this is an example that uses `with_contract_ids(&[&contract_id, ...])`.

```rust,ignore
{{#include ../../packages/fuels/tests/logs.rs:external_contract_ids}}
Expand Down
Loading