Skip to content

refactor(cheatcodes): generic CheatcodesExecutor<CTX>#13650

Merged
mattsse merged 1 commit intofoundry-rs:masterfrom
figtracer:fig/cheatcodes-executor-generic
Mar 7, 2026
Merged

refactor(cheatcodes): generic CheatcodesExecutor<CTX>#13650
mattsse merged 1 commit intofoundry-rs:masterfrom
figtracer:fig/cheatcodes-executor-generic

Conversation

@figtracer
Copy link
Copy Markdown
Collaborator

Summary

  • Thread the CTX type parameter through CheatcodesExecutor and all callsites
  • Purely mechanical change — CTX is unused by the trait methods for now
  • Sets up for the upcoming inversion-of-control refactor (PR 2/3)

Stack: PR 1/3 → #next → #next

Test plan

  • cargo check passes (zero errors, zero warnings)
  • No behavioral change — purely type-level threading

Thread the `CTX` type parameter through `CheatcodesExecutor` and all
callsites. This is a purely mechanical change — `CTX` is unused by the
trait methods for now but sets up for the upcoming inversion-of-control
refactor that will eliminate `InspectorExt` from the trait boundary.
Copy link
Copy Markdown
Collaborator

@mablr mablr left a comment

Choose a reason for hiding this comment

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

Seems good to me !

I think it's clean to share CTX between ccx and executor.

cc @mattsse

@mattsse mattsse merged commit 8bebd19 into foundry-rs:master Mar 7, 2026
16 checks passed
@github-project-automation github-project-automation Bot moved this to Done in Foundry Mar 7, 2026
@figtracer figtracer deleted the fig/cheatcodes-executor-generic branch March 7, 2026 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants