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

Add feature vm.expectNoEmit #9565

Closed
NicolasWent opened this issue Dec 16, 2024 · 1 comment
Closed

Add feature vm.expectNoEmit #9565

NicolasWent opened this issue Dec 16, 2024 · 1 comment
Labels
T-feature Type: feature T-needs-triage Type: this issue needs to be labelled

Comments

@NicolasWent
Copy link

Component

Forge

Describe the feature you would like

Hello,

It would be nice to have a new cheatcode vm.expectNoEmit

This cheatcode would allow to test that no event was actually emited during the execution

Additional context

This feature can be useful if we like to test that our function doesn't do anything, currently I didn't found a way to do it

@NicolasWent NicolasWent added T-feature Type: feature T-needs-triage Type: this issue needs to be labelled labels Dec 16, 2024
@github-project-automation github-project-automation bot moved this to Todo in Foundry Dec 16, 2024
@grandizzy
Copy link
Collaborator

@NicolasWent thank you for the report. This is coming soon by adding count (which you can set to 0) on expectEmit with #9405
Closing as dupe for #509 Thank you!

@grandizzy grandizzy closed this as not planned Won't fix, can't repro, duplicate, stale Dec 16, 2024
@github-project-automation github-project-automation bot moved this from Todo to Done in Foundry Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-feature Type: feature T-needs-triage Type: this issue needs to be labelled
Projects
Status: Done
Development

No branches or pull requests

2 participants