Skip to content

Commit 2ef7aa5

Browse files
authored
Update Foundry Upgrades submodule (#991)
1 parent 4c78fa6 commit 2ef7aa5

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

docs/modules/ROOT/pages/foundry/pages/foundry-defender.adoc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,18 @@ DEFENDER_KEY=<Your API key>
3131
DEFENDER_SECRET<Your API secret>
3232
----
3333

34+
== Network Selection
35+
36+
The network that is used with OpenZeppelin Defender is determined by the network that Foundry is connected to.
37+
If you want to ensure that a specific network is used with Defender, set the `DEFENDER_NETWORK` environment variable in your `.env` file, for example:
38+
[source]
39+
----
40+
DEFENDER_NETWORK=my-mainnet-fork
41+
----
42+
If set, this must be the name of a public, private or forked network in Defender. If Foundry is connected to a different network while this is set, the deployment will not occur and will throw an error instead.
43+
44+
NOTE: This is required if you have multiple forked networks in Defender with the same chainId, in which case the one with name matching the `DEFENDER_NETWORK` environment variable will be used.
45+
3446
== Usage
3547

3648
=== Upgradeable Contracts

0 commit comments

Comments
 (0)