Skip to content

Commit c7b4737

Browse files
committed
Johannes's CR
1 parent b8746a3 commit c7b4737

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

docs/cvl/linking.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
===========
44

55
The `links` block allows you to declare contract linking directly in your CVL
6-
specification, replacing the {ref}`--link` and {ref}`--struct_link` CLI flags.
7-
Each entry in the `links` block tells the Prover that a particular storage
8-
location holding an address should be resolved to a specific contract instance
9-
in the {term}`scene`.
6+
specification, replacing the {ref}`--link` and {ref}`--struct_link` conf file
7+
attributes. Each entry in the `links` block tells the Prover that a particular
8+
storage location holding an address should be resolved to a specific contract
9+
instance in the {term}`scene`.
1010

1111
The `links` block supports linking simple scalar fields, struct fields, array
1212
elements, mapping entries, immutable variables, and arbitrary nesting of these.
@@ -52,7 +52,7 @@ Basic Linking
5252

5353
The simplest form of linking maps a storage variable that holds an address to a
5454
contract instance in the scene. This is equivalent to using the {ref}`--link`
55-
CLI flag.
55+
conf file attribute.
5656

5757
Given a contract with a storage variable `token` of type `address` (or a
5858
contract type like `IERC20`):

docs/prover/cli/options.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1939,6 +1939,13 @@ _Configuration file_
19391939
<contract>:<slot>=<address>
19401940
```
19411941

1942+
```{note}
1943+
The recommended approach is to declare linking inline in your spec using a
1944+
{ref}`links block <linking>`, which provides type checking, precise struct
1945+
paths, and support for arrays, mappings, and wildcards. The `links` block and
1946+
`--link` flag cannot be used together in the same Prover run.
1947+
```
1948+
19421949
**What does it do?**
19431950
Links a slot in a contract with another contract.
19441951

@@ -1966,13 +1973,6 @@ _Configuration file_
19661973
]
19671974
```
19681975

1969-
```{note}
1970-
You can also declare linking inline in your spec using a {ref}`links block <linking>`,
1971-
which provides type checking, precise struct paths, and support for arrays,
1972-
mappings, and wildcards. The `links` block and `--link` flag cannot be used
1973-
together for the same contract.
1974-
```
1975-
19761976
(--optimistic_contract_recursion)=
19771977
## `optimistic_contract_recursion`
19781978

0 commit comments

Comments
 (0)