File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed
Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 33===========
44
55The ` 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
1111The ` links ` block supports linking simple scalar fields, struct fields, array
1212elements, mapping entries, immutable variables, and arbitrary nesting of these.
@@ -52,7 +52,7 @@ Basic Linking
5252
5353The simplest form of linking maps a storage variable that holds an address to a
5454contract instance in the scene. This is equivalent to using the {ref}` --link `
55- CLI flag .
55+ conf file attribute .
5656
5757Given a contract with a storage variable ` token ` of type ` address ` (or a
5858contract type like ` IERC20 ` ):
Original file line number Diff line number Diff 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?**
19431950Links 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
You can’t perform that action at this time.
0 commit comments