Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Certain transformers should run after the final step #43

Open
cd1m0 opened this issue Oct 24, 2024 · 0 comments
Open

Certain transformers should run after the final step #43

cd1m0 opened this issue Oct 24, 2024 · 0 comments

Comments

@cd1m0
Copy link
Collaborator

cd1m0 commented Oct 24, 2024

Currently transformers run on each step of the trace. However some transforms can compute values after the end of the trace. Examples include:

  • decoded contract state before
  • live contracts before
  • return values
    ...

It would be nice to find a simple way to reuse the transformer logic for this. There are 2 problems here:

  1. How do we change the transformer signature so that some of them can run wihtout a step (or with a dummy step)
  2. Where do we store this information? Does the trace just come with N+1 entries?

This is likely an interface breaking change.

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

No branches or pull requests

1 participant