Skip to content

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

@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

Sub-issues

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Completed

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions