Skip to content

Conversation

@greged93
Copy link
Contributor

Motivation

Tries to resolve #8688. This issue was discovered when performing some tests with the debug_traceTransaction endpoint which seemed to fail to return any storage diffs created by a transaction.

Solution

Add the call to with_state_diffs() when creating the TracingInspectorConfig::all() which doesn't include the state diffs.

@greged93 greged93 changed the title fix(tracing): storage diff fix(anvil): storage diff Aug 18, 2024
@greged93
Copy link
Contributor Author

I don't think I broke CI as it just seems to be a HTTP error but let me know if I need to fix something

Copy link
Member

@klkvr klkvr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirming this resolves the issue. Enabling it with --steps-tracing should be fine as storage diffs are not that heavy compared to complete steps trace

@klkvr klkvr merged commit c0a2728 into foundry-rs:master Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(anvil): debug_traceTransaction never returns storage access

3 participants