-
Notifications
You must be signed in to change notification settings - Fork 181
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
figure out failing emits with latest foundry #814
Comments
I tried out Vulcan but it had some internal reverts that I couldn't track down, so I gave up (flight is about to land). I did, however, find a way around the foundry issue using |
Another simple work around for this is to call the functions on a wrapper contract instead of the library (see #815). I'm actually confused why only two of the store tests are failing after the foundry update and not all of them - in my mind none of them should match the criteria of "expect an event in the next |
Weird! Is this something reproducible and worth bubbling up to Foundry team? Glad it was a much easier fix than I was anticipating. |
main branch's tests started failing. I think it might be this: foundry-rs/foundry#4920
It's a little unclear by the above "nested in the CALL subtree" description if this should succeed or fail in our case, but I noticed that
StoreCore.pushToField
is doing more calls internally before emitting, so maybe it's not matching on the new criteria forexpectEmit
?This feels like a bummer constraint if so, and wonder if there are ways around this or alternative vm helpers.
I asked about this in the Foundry Support Telegram group. If there's not a quick/clear way to test for emits in the same way with the latest foundry version, we may need to pin our version for now.
Another option is to use Vulcan test utils, which has some nicer ergonomics: https://github.com/nomoixyz/vulcan
(I also have an open issue and they have a pending PR for better gas reporting)
The text was updated successfully, but these errors were encountered: