You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -149,6 +147,27 @@ Specifies the priority fee for the deployment transaction(s) delimited by `|` an
149
147
150
148
Specifies the record(s) to pay for fees privately, delimited by `|` and used in order. The fees must either be valid plaintext, ciphertext, or `default`. If not specified, then transaction fees will be public.
151
149
150
+
151
+
#### `--with <WITH>...`
152
+
153
+
Specifies one or more additional programs to load into the VM at runtime. Each entry can be:
154
+
- A path to a local `.aleo` bytecode file (e.g. `./extra_prog.aleo`)
155
+
- The name of a remote program to fetch from the network endpoint (along with its transitive dependencies)
156
+
157
+
Multiple programs can be provided as a comma-separated list. When specifying local `.aleo` files, they must be listed in topological order — i.e. a dependency must appear before any program that depends on it.
158
+
159
+
This is useful when a program has dynamic dependencies that are not declared in `program.json` and therefore cannot be resolved at build time.
160
+
161
+
```bash
162
+
leo execute <FUNCTION_NAME><INPUTS> --with ./extra_prog.aleo
163
+
leo execute <FUNCTION_NAME><INPUTS> --with program1.aleo,program2.aleo
164
+
```
165
+
166
+
:::note
167
+
When loading remote programs, an `--endpoint` must be set.
168
+
:::
169
+
170
+
152
171
#### `--consensus-heights <CONSENSUS_HEIGHTS>`
153
172
154
173
Specifies the consensus heights to use, delimited by `,`. This should only be set if you are using a custom devnet.
0 commit comments