Skip to content

Releases: foundry-rs/foundry

Nightly (2025-06-12)

12 Jun 06:11
2dbd8c9
Compare
Choose a tag to compare
Nightly (2025-06-12) Pre-release
Pre-release

Other

Full Changelog:

nightly...nightly-2dbd8c91d5ae708eed21c9137ecc9aa385894801

Nightly

10 Jul 18:13
2dbd8c9
Compare
Choose a tag to compare
Nightly Pre-release
Pre-release

Other

Full Changelog:

nightly...nightly-2dbd8c91d5ae708eed21c9137ecc9aa385894801

Nightly (2025-06-11)

11 Jun 06:11
ac0411d
Compare
Choose a tag to compare
Nightly (2025-06-11) Pre-release
Pre-release

Forge Features

Other

Full Changelog:

nightly...nightly-ac0411d0e3b9632247c9aea9535472eda09a57ae

Nightly (2025-06-10)

10 Jun 06:12
090f002
Compare
Choose a tag to compare
Nightly (2025-06-10) Pre-release
Pre-release

Cast Features

  • feat(cast): add --cost for estimate to return the eth cost at current gas price (#9687) by @0xvv

Other

  • chore: update proptest to 1.7.0 (#10733) by @grandizzy
  • chore(deps): weekly cargo update (#10728) by @github-actions[bot]

Full Changelog:

nightly...nightly-090f0023c1059fd9852aa77a8c04f497893fe0c3

Nightly (2025-06-09)

09 Jun 06:13
548d1f0
Compare
Choose a tag to compare
Nightly (2025-06-09) Pre-release
Pre-release

Chisel Fixes

  • fix(chisel): memory data location for string and bytes params (#10729) by @grandizzy

Other

Full Changelog:

nightly...nightly-548d1f0ebb811fcebd5fafdec33b7b814d0dbdbd

Nightly (2025-06-08)

07 Jun 06:12
192332e
Compare
Choose a tag to compare
Nightly (2025-06-08) Pre-release
Pre-release
  • No changes

v1.2.3

08 Jun 14:13
a813a2c
Compare
Choose a tag to compare

Foundry v1.2.3

Foundry v1.2.3 is a bugfix release for anvil and cast call command.

Anvil Fixes

  • fix(anvil): guard against the blockchain advancing while checking latest block (#10709) by @alexghr

Cast Fixes

  • fix(cast): do not use default overrides if no override arg (#10713) by @grandizzy

Changelog:

v1.2.2...v1.2.3

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## Anvil Features

Anvil Fixes

  • perf: spawn mining on blocking (#10471) by @mattsse
  • fix(anvil): use saturating_to when check for req funds (#10503) by @grandizzy
  • fix(anvil): recomputing next-base-fee after reloading state (#10488) by @naps62
  • fix(anvil): guard against the blockchain advancing while checking latest block (backport to v1.2.3) (#10716) by @grandizzy

Cast Features

Cast Fixes

Forge Features

Forge Fixes

Other

Full Changelog:

v1.1.0...v1.2.3

Forge Features

Read more

stable

20 Dec 08:57
a813a2c
Compare
Choose a tag to compare

Foundry v1.2.3

Foundry v1.2.3 is a bugfix release for anvil and cast call command.

Anvil Fixes

  • fix(anvil): guard against the blockchain advancing while checking latest block (#10709) by @alexghr

Cast Fixes

  • fix(cast): do not use default overrides if no override arg (#10713) by @grandizzy

Changelog:

v1.2.2...v1.2.3

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## Anvil Features

Anvil Fixes

  • perf: spawn mining on blocking (#10471) by @mattsse
  • fix(anvil): use saturating_to when check for req funds (#10503) by @grandizzy
  • fix(anvil): recomputing next-base-fee after reloading state (#10488) by @naps62
  • fix(anvil): guard against the blockchain advancing while checking latest block (backport to v1.2.3) (#10716) by @grandizzy

Cast Features

Cast Fixes

Forge Features

Forge Fixes

Other

Full Changelog:

v1.1.0...v1.2.3

Forge Features

Read more

Nightly (2025-06-06)

06 Jun 06:12
9963414
Compare
Choose a tag to compare
Nightly (2025-06-06) Pre-release
Pre-release

Anvil Fixes

  • fix(anvil): guard against the blockchain advancing while checking latest block (#10714) by @alexghr

Cast Fixes

  • fix(cast): do not use default overrides if no override arg (#10710) by @grandizzy

Forge Fixes

Other

Full Changelog:

nightly...nightly-99634144b6c9371982dcfc551a7975c5dbf9fad8

Nightly (2025-06-05)

05 Jun 06:11
dc43e2c
Compare
Choose a tag to compare
Nightly (2025-06-05) Pre-release
Pre-release

Cast Fixes

Forge Features

  • feat(forge): eip712 cheatcodes + forge cmd (eip712 + bind-json) with solar (#10510) by @0xrusowsky

Other

  • chore: add additional check for is_impersonanted (#10701) by @mattsse

Full Changelog:

nightly...nightly-dc43e2c1ab70ec111d3272572e1732008f973a06