Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion vocs/docs/pages/anvil/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ Gets the transaction hash and the address which created a contract.
     Print help information.

`--hardfork <HARDFORK>`
&nbsp;&nbsp;&nbsp;&nbsp; Choose the EVM hardfork to use e.g. `shanghai`, `paris`, `london`, etc... [default: latest]
&nbsp;&nbsp;&nbsp;&nbsp; Choose the EVM hardfork to use e.g. `prague`, `cancun`, `shanghai`, `paris`, `london`, etc... [default: latest]

`--init <PATH>`
&nbsp;&nbsp;&nbsp;&nbsp; Initialize the genesis block with the given `genesis.json` file.
Expand Down
12 changes: 3 additions & 9 deletions vocs/docs/pages/config/reference/solidity-compiler.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -161,23 +161,17 @@ If enabled, Foundry will treat Solidity compiler warnings as errors, stopping ar
##### `evm_version`

- Type: string
- Default: cancun
- Default: prague
- Environment: `FOUNDRY_EVM_VERSION` or `DAPP_EVM_VERSION`

The EVM version to use during tests. The value **must** be an EVM hardfork name, such as `london`, `byzantium`, etc.
The EVM version to use during tests. The value **must** be an EVM hardfork name, such as `london`, `paris`, `shanghai`, `cancun`, `prague`, etc.

If you are relying on a specific EVM version for compatibility reasons you are recommended to pin to it in `foundry.toml`:

```toml
evm_version = "paris"
```

If you are experimenting with future hardforks that Foundry already supports, such as [EIP-7702](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-7702.md) to be added in `Prague`, you should set your `evm_version` as follows:

```toml
evm_version = "prague"
```

##### `revert_strings`

- Type: string
Expand Down Expand Up @@ -521,7 +515,7 @@ Additional compiler profile [via_ir](#via_ir) setting.
##### `additional_compiler_profile.evm_version`

- Type: string
- Default: cancun
- Default: prague

Additional compiler profile [evm_version](#evm_version) setting.

Expand Down
2 changes: 1 addition & 1 deletion vocs/docs/pages/forge/tests/fork-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ Proper configuration is needed to execute forked tests with chains using differe
- if same EVM version applies for all forked chains used, then it can be globally configured in `foundry.toml` file

```toml
evm_version = "cancun"
evm_version = "prague"
```

- if different EVM versions are used, specific EVM test version can be set using inline configuration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ In order to reliably deploy to deterministic addresses we will need to make sure

```toml
[profile.default]
solc = "0.8.28"
evm_version = "cancun"
solc = "<SOLC_VERSION>"
evm_version = "<EVM_VERSION>"
bytecode_hash = "none"
cbor_metadata = false
```
Expand Down