Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

foundry: vm.dumpState skips empty accounts #6986

Merged
merged 2 commits into from
Feb 1, 2024

Commits on Feb 1, 2024

  1. foundry: vm.dumpState skips empty accounts

    Update `vm.dumpState` to also skip empty accounts.
    Empty accounts are not particularly useful and would
    otherwise require a postprocessing step after the state dump
    to remove.
    
    Adds a unit test showing that it works and updates an old unit
    test as an empty account is defined by a nonce of 0, no balance
    and no code. If there is storage, it still counts as an empty
    account.
    
    cargo fmt
    tynes committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    eca50a5 View commit details
    Browse the repository at this point in the history
  2. testdata: cleanup

    tynes committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    38c2de7 View commit details
    Browse the repository at this point in the history