Skip to content

Conversation

@DaniPopes
Copy link
Member

Motivation

Refactorings + small perf

Solution

  • get rid of GasInspectors everywhere, as its only use was .gas_remaining() which is the exact same as interpreter.gas.remaining()
  • refactor executor and interpreter stack config/builders
    • Executor now holds a proper InterpreterStack instead of its "builder" to clone on call instead of building on each tx

Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

amazing, can merge once test pass

@DaniPopes DaniPopes requested a review from mattsse August 19, 2023 17:04
@mattsse mattsse merged commit 2e90e35 into foundry-rs:master Aug 19, 2023
@DaniPopes DaniPopes deleted the inspectors-cleanup branch August 19, 2023 17:47
mikelodder7 pushed a commit to LIT-Protocol/foundry that referenced this pull request Sep 12, 2023
* refactor: clean up evm inspectors

* tests
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