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

[Cheatcode] RecordCalls #6267

Closed
marktoda opened this issue Nov 9, 2023 · 2 comments
Closed

[Cheatcode] RecordCalls #6267

marktoda opened this issue Nov 9, 2023 · 2 comments
Labels
T-feature Type: feature

Comments

@marktoda
Copy link
Contributor

marktoda commented Nov 9, 2023

Component

Forge

Describe the feature you would like

Would like a cheatcode similar to record and recordLogs called recordCalls which records all external calls during the recorded period. My particular use case is to more accurately assess L2 gas costs in my forge-gas-snapshot library, but can see this being useful for testing to ensure certain interactions occurred as expected.

Additional context

No response

@marktoda marktoda added the T-feature Type: feature label Nov 9, 2023
@gakonst gakonst added this to Foundry Nov 9, 2023
@github-project-automation github-project-automation bot moved this to Todo in Foundry Nov 9, 2023
@mds1
Copy link
Collaborator

mds1 commented Nov 16, 2023

Once #6310 is merged it should solve this use case (you'll just have to filter the accesses to only keep calls), feel free to take a look at that and leave comments with your thoughts

@marktoda
Copy link
Contributor Author

Sick, #6310 is merged, closing this

@github-project-automation github-project-automation bot moved this from Todo to Done in Foundry Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-feature Type: feature
Projects
Archived in project
Development

No branches or pull requests

2 participants