From 4e61a703de89e45e675d114a004669b3cdc01b48 Mon Sep 17 00:00:00 2001 From: antazoey Date: Wed, 10 Jan 2024 14:40:07 -0600 Subject: [PATCH] docs: network script example fix (#1861) --- docs/userguides/networks.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/userguides/networks.md b/docs/userguides/networks.md index 57f92c243e..9ae67d7f11 100644 --- a/docs/userguides/networks.md +++ b/docs/userguides/networks.md @@ -97,14 +97,16 @@ ape networks list You can also use the `--network` option on scripts that use the `main()` method approach or scripts that implement that `ConnectedProviderCommand` command type. See [the scripting guide](./scripts.html) to learn more about scripts and how to add the network option. -**NOTE**: You can omit values to use defaults. +Also, you can omit values to use defaults. For example, the default ecosystem is `ethereum` and the default network is `local`, so you can do: ```bash -ape run --network ::foundry +ape run --network ::foundry ``` as a short-cut for `ethereum:local:foundry`. +(note: `` refers to the name of a script that uses the network option or is a `ConnectedProviderCommand`. +See the [scripting guide](./scripts.html) for more information). ## Configuring Networks