Skip to content

feat: add simple "expectEmit" #320

New issue

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

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

Already on GitHub? # to your account

Merged
merged 2 commits into from
Mar 9, 2023
Merged

Conversation

PaulRBerg
Copy link
Contributor

@PaulRBerg PaulRBerg commented Mar 3, 2023

Implements #252.

I know that this has been previously discussed in #42, but I think that this abstraction would be so helpful that it's worth reconsidering it.

FWIW: I have this function defined in like ~7 separate repos.

@mds1
Copy link
Collaborator

mds1 commented Mar 5, 2023

Wdyt of PR'ing this as a native cheat? It should be very simple to implement, and per foundry-rs/foundry#3782 it'd be ideal to start moving things there by default when we can

@PaulRBerg
Copy link
Contributor Author

Wdyt of PR'ing this as a native cheat?

Done!

foundry-rs/foundry#4479

and per foundry-rs/foundry#3782 it'd be ideal

I'm in favor of that proposal!

@PaulRBerg PaulRBerg force-pushed the expect-emit branch 2 times, most recently from a7f427a to 2545bff Compare March 7, 2023 16:16
@PaulRBerg
Copy link
Contributor Author

Since I ended up implementing this as a native cheat in Foundry (foundry-rs/foundry#4479), I refactored this branch to add the expectEmit cheat to Vm.sol, and then I force pushed to this branch.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants