Skip to content

Releases: foundry-rs/foundry

v1.2.2

30 May 12:39
73ac79f
Compare
Choose a tag to compare

Foundry v1.2.2

Foundry v1.2.2 is a bugfix release for forge formatter and cast hash-message command.

Forge Fixes

Cast Fixes

Changelog:

v1.2.1...v1.2.2

Foundry v1.2.1

Foundry v1.2.1 is a bugfix release for forge formatter, forked tests and vm.cool cheatcode.

Forge Fixes

Changelog:

v1.2.0...v1.2.1

Foundry v1.2.0

This release comes with support for Etherscan's V2 API, forge script execution protection, performance improvement of Anvil block mining and several fixes for EIP-7702 cheatcodes.

Etherscan v2 API support

⚠️ At the end of May Etherscan will deprecate its V1 API. With the new V2 API Etherscan enables users to use a single API key for all chains to greatly simplify the management of API keys for multichain Foundry codebases. Any API key created on etherscan.io (mainnet) can be used for all chains. API keys created on deployments of Etherscan on other chains (e.g. BaseScan, Arbiscan, etc..) will likely stop working. Please see the Etherscan v2 documenation for additional details. Whilst Foundry still supports V1 API keys until deprecation it is highly recommended to migrate now as follows in your foundry.toml:

[etherscan]
sepolia = { key = "$YOUR_V2_COMPATIBLE_API_KEY" }

Etherscan v1 API and keys are still supported by specifying the global etherscan_api_version = "v1" config, or per chain api-version as follows in your foundry.toml:

[etherscan]
base-sepolia = { key = "$YOUR_V1_API_KEY", api-version = "v1" }

Performance

Consistent Anvil blocks mining

Mining a block in Anvil is a blocking operation because it can take a relatively long time (and can be significantly longer in forking mode due to rpc requests). Until this version, the mining block tasks were not spawned as blocking tasks, and that could cause state inconsistencies like seen in Cow protocol integration tests failures. Foundry v1.2.0 changes the way blocks are mined in Anvil and ensures consistency by spawning request handlers as blocking tasks.

Forge script execution protection

In order to protect against coding errors that could lead to undesired transactions and transfer of funds to script address itself, this version comes with execution protection feature which reverts execution if address(this) is used. The protection is enabled by default and can be turned off by setting as follows in foundry.toml:

script_execution_protection = false

Anvil Features

Anvil Fixes

Cast Features

Cast Fixes

Forge Features

Forge Fixes

Other

Full Changelog:

v1.1.0...v1.2.0-rc

Nightly (2025-05-30)

29 May 06:11
7e68208
Compare
Choose a tag to compare
Nightly (2025-05-30) Pre-release
Pre-release
  • No changes

Nightly

10 Jul 18:13
7e68208
Compare
Choose a tag to compare
Nightly Pre-release
Pre-release
  • No changes

Nightly (2025-05-28)

28 May 06:11
65650a6
Compare
Choose a tag to compare
Nightly (2025-05-28) Pre-release
Pre-release

Other

  • chore(wallets): improve error message for signer instantiation failure (#10646) by @mablr
  • chore: replaced anvil hardforks with alloy hardforks (#10612) by @Rimeeeeee

Full Changelog:

nightly...nightly-65650a6fca64dbd17c093c106b1c61b1982f5469

Nightly (2025-05-27)

27 May 06:11
496598b
Compare
Choose a tag to compare
Nightly (2025-05-27) Pre-release
Pre-release

Cast Features

  • feat(cast mktx): add support for "--ethsign" option (#10641) by @mablr

Other

Full Changelog:

nightly...nightly-496598b3717354780de294898da83c19143010b5

Nightly (2025-05-26)

26 May 06:12
3c0b3df
Compare
Choose a tag to compare
Nightly (2025-05-26) Pre-release
Pre-release

Other

  • chore(deps): weekly cargo update (#10625) by @github-actions[bot]
  • chore: make clippy happy (#10628) by @mattsse

Full Changelog:

nightly...nightly-3c0b3df8f8ef8800a10912ce5a9dcd9eb7e971ff

Nightly (2025-05-25)

25 May 06:12
f86a66e
Compare
Choose a tag to compare
Nightly (2025-05-25) Pre-release
Pre-release

Cast Fixes

Other

Full Changelog:

nightly...nightly-f86a66ea206d5e3405dce7cdfffc7c843a8b43cf

Nightly (2025-05-24)

24 May 06:11
b811823
Compare
Choose a tag to compare
Nightly (2025-05-24) Pre-release
Pre-release

Other

Full Changelog:

nightly...nightly-b8118232de784e6bb650b95cbdc3b65172c80494

Nightly (2025-05-23)

23 May 06:11
96d107c
Compare
Choose a tag to compare
Nightly (2025-05-23) Pre-release
Pre-release

Cast Features

Forge Features

Forge Fixes

  • fix: vm.chainId regression in isolation mode on nightly post revm bump (#10589) by @zerosnacks

Other

Full Changelog:

nightly...nightly-96d107c828d93c34f8b6fd9da6dd84f602d0dc22

Nightly (2025-05-22)

22 May 06:11
4332dc4
Compare
Choose a tag to compare
Nightly (2025-05-22) Pre-release
Pre-release

Forge Features

Other

  • forge(fix): update persistent storage from active db (#10576) by @grandizzy
  • chore: replaced anvil DepositTransaction with just op_alloy::TxDeposit (#10480) by @Rimeeeeee
  • feat(anvil): add block context overrides for eth_call and eth_estimateGas (#10487) by @mablr

Full Changelog:

nightly...nightly-4332dc48a5f3a3627d152aa2912138e2c9ef4caa