-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
chore(protocol): fix genesis tests and add minor changes #15741
Conversation
Oh that would be bad! If it is indeed different we have to check because it really should behave 100% identical (except for gas costs of course).
I think it's safer to keep all functions |
Maybe bc. foundry does not suportts it yet ? It seems anvil does not. |
I also implemented transient storage for the bridge call context and that seems to work fine in the tests at least. |
I'll revert the removal of nonEntrancy guards, but maybe Brecht you can revert the new nonEntrancy
The genesis tests depends on Anvil, I commented out a line to see if it works. |
New all tests pass (removed a line from genesis test) |
still fails.
Reverting nonReentrant implementation to the previous non-transient approach can make the test pass. Therefore, I guess the new nonReentrant implementation does have some side effect we need to figure out.
@Brechtpd may I suggest to keep the origiinal nonReentrant implementation in your PR then create a seperate PR for it?
Update
I removed some uncessary nonReentrant guards from some function, now the above script succeeds. It does reflect that the behavior of the new nonReentrant is different and we need to care. Please review carefully if these nonReentrant usage can be removed.