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: 83c5d212a01f8950727da4095cdfe2654baccb5b
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: d3db4ef90a72b7d24aa5a2e5c649593eaef7801d
Choose a head ref
  • 2 commits
  • 3 files changed
  • 2 contributors

Commits on Dec 4, 2024

  1. fix: use vm.getBlockTimestamp for skip and rewind (#634)

    Given that during `via-ir` compilations, the `block.timestamp` variable
    might be distorted due to optimizations, the more correct way to obtain
    the block timestamp. See [this
    discussion](foundry-rs/foundry#1373 (comment))
    xenide authored Dec 4, 2024
    Configuration menu
    Copy the full SHA
    051fb65 View commit details
    Browse the repository at this point in the history

Commits on Dec 6, 2024

  1. feat: count assertion for expectRevert (#638)

    Ref: foundry-rs/foundry#9484
    
    ```solidity
    
        /// Expects `count` number of reverts from the upcoming calls with any revert data or reverter.
        function expectRevert(uint64 count) external;
    
        /// Expects `count` number of reverts from the upcoming calls that match the revert data.
        function expectRevert(bytes4 revertData, uint64 count) external;
    
        /// Expects `count` number of reverts from the upcoming calls that exactly match the revert data.
        function expectRevert(bytes calldata revertData, uint64 count) external;
    
        /// Expects `count` number of reverts from the upcoming calls from the reverter address.
        function expectRevert(address reverter, uint64 count) external;
    
        /// Expects `count` number of reverts from the upcoming calls from the reverter address that match the revert data.
        function expectRevert(bytes4 revertData, address reverter, uint64 count) external;
    
        /// Expects `count` number of reverts from the upcoming calls from the reverter address that exactly match the revert data.
        function expectRevert(bytes calldata revertData, address reverter, uint64 count) external;
    ```
    yash-atreya authored Dec 6, 2024
    Configuration menu
    Copy the full SHA
    d3db4ef View commit details
    Browse the repository at this point in the history
Loading