Skip to content

feat: improve UsedStateEVMInspector with additional op-code tracking#872

Closed
GAlexeyV wants to merge 1 commit into
flashbots:developfrom
GAlexeyV:feat-improve-UsedStateEVMInspector
Closed

feat: improve UsedStateEVMInspector with additional op-code tracking#872
GAlexeyV wants to merge 1 commit into
flashbots:developfrom
GAlexeyV:feat-improve-UsedStateEVMInspector

Conversation

@GAlexeyV

@GAlexeyV GAlexeyV commented Jan 27, 2026

Copy link
Copy Markdown

📝 Summary

Improves UsedStateEVMInspector by adding tracking for additional EVM op-codes that read or write state, providing better coverage of state dependencies during transaction simulation.

Changes

  • New field: read_code in UsedStateTrace tracks addresses whose code is read via EXTCODECOPY, EXTCODEHASH or EXTCODESIZE
  • CREATE/CREATE2 tracking: Added create hook to track caller's balance read when contracts are deployed
  • Updated methods: append_trace and clear now handle the new read_code field
  • Test coverage: Added 2 new tests verifying the tracking works correctly

💡 Motivation and Context

Issue to address: #58


✅ I have completed the following steps:

  • Run make lint
  • Run make test
  • Added tests (if applicable)

@ZanCorDX

Copy link
Copy Markdown
Collaborator

No automated LLM contributions please.

@ZanCorDX ZanCorDX closed this Jan 28, 2026
@GAlexeyV

Copy link
Copy Markdown
Author

No automated LLM contributions please.

@ZanCorDX ,

Thank you for reviewing
Is implementation wrong or you do not accept contributions even if they correct but AI generated?
I reviewed and tested AI generated code

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.

2 participants