Skip to content

feat(cheatcodes): improve getStateDiff output and add getStateDiffStruct #9504

Open
@grandizzy

Description

@grandizzy

Component

Forge

Describe the feature you would like

follow up of #9435 / #2846
see #9435 (comment)

Tenderly sample
https://api.tenderly.co/api/v1/public-contract/1/trace/0x7abecacd8b1a54db8f0835a5c82edfab96ff922a41d2faa914c339e3e9319b43

  • add Foundry contract name / artifact (along current label)
  • add nonce diffs
  • add sol type / storage labels and decode state diff (by using storage layout)
  • add vm.getStateDiffStruct cheatcode that returns an array of structs to facilitate introspection directly in solidity

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions