Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: foundry-rs/forge-std
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.9.7
Choose a base ref
...
head repository: foundry-rs/forge-std
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.10.0
Choose a head ref
  • 12 commits
  • 9 files changed
  • 5 contributors

Commits on May 16, 2025

  1. Configuration menu
    Copy the full SHA
    f46d830 View commit details
    Browse the repository at this point in the history

Commits on Jun 4, 2025

  1. Broken forge link (#685)

    The forge-std link is broken in the README
    mario-eth authored Jun 4, 2025
    Configuration menu
    Copy the full SHA
    ee93fdc View commit details
    Browse the repository at this point in the history

Commits on Jun 11, 2025

  1. feat: add EIP-712 cheatcodes (#686)

    Ref foundry-rs/foundry#10510
    
    Add `eip712HashType`, `eip712HashStruct`, and `eip712HashTypedData`
    cheatcodes to VmSafe interface
    
    ```solidity
    function eip712HashType(string calldata typeNameOrDefinition) external pure returns (bytes32 typeHash);
    function eip712HashType(string calldata bindingsPath, string calldata typeName) external pure returns (bytes32 typeHash);
    function eip712HashStruct(string calldata typeNameOrDefinition, bytes calldata abiEncodedData) external pure returns (bytes32 typeHash);
    function eip712HashStruct(string calldata bindingsPath, string calldata typeName, bytes calldata abiEncodedData) external pure returns (bytes32 typeHash);
    function eip712HashTypedData(string calldata jsonData) external pure returns (bytes32 digest);
    ```
    yash-atreya authored Jun 11, 2025
    Configuration menu
    Copy the full SHA
    60acb7a View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2025

  1. feat(Vm): add setSeed, getRawBlockHeader (#696)

    Closes #690.
    DaniPopes authored Jul 31, 2025
    Configuration menu
    Copy the full SHA
    1b36509 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6e05160 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    369dd01 View commit details
    Browse the repository at this point in the history
  4. perf(StdAssertions): avoid vm call for trivial conditions (#693)

    Avoid calling vm when the condition is trivial to check inline. This is
    a minor performance improvement as a couple of opcodes execute a lot
    faster than a full cheatcode pipeline (external call, EVM call
    bookkeeping, abi encoding/decoding, ...) that eventually does nothing.
    
    For example, [Uniswap's v4-core](https://github.com/Uniswap/v4-core/)
    spends ~28% of the entire `forge test` CPU time in a couple of trivial
    `assert` functions (uint256, bytes32, true, false), ~13% for `forge
    coverage`. This is without accounting for the actual CALL/abi coding
    etc.
    
    These numbers are skewed due to profiling overhead, however making this
    change does have ~5% overall test performance improvement, for no
    compilation time change.
    DaniPopes authored Jul 31, 2025
    Configuration menu
    Copy the full SHA
    276ccaa View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    cb198b1 View commit details
    Browse the repository at this point in the history
  6. chore(StdAssertions): manually invert conditions (#699)

    Optimize it ourselves.
    DaniPopes authored Jul 31, 2025
    Configuration menu
    Copy the full SHA
    349b909 View commit details
    Browse the repository at this point in the history
  7. fix: re-add fail(string) (#697)

    Fixes #583.
    
    Co-authored-by: zerosnacks <95942363+zerosnacks@users.noreply.github.com>
    DaniPopes and zerosnacks authored Jul 31, 2025
    Configuration menu
    Copy the full SHA
    e60144e View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    fd8e4b0 View commit details
    Browse the repository at this point in the history
  9. 1 Configuration menu
    Copy the full SHA
    8bbcf6e View commit details
    Browse the repository at this point in the history
Loading