-
Notifications
You must be signed in to change notification settings - Fork 44
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
bug: native not executing the same as cairo #806
Comments
I have a question, would it be possible that the bug lies in the blockifier implementation? Especially the syscall handler implementation, since its not exactly the same code as the VM (due to how native is designed). (not ruling out native isn't at fault, but its a possibility) |
Totally possible, there might be a bugs on the syscall handler. Specifically on storage though, they are fairly straightforward to implement and we have dedicated unit tests and ERC20 contracts, which indirectly tests for the correct usage of storage syscalls. @enitrat do the variable always gets registered? Meaning that it is not behind any conditional, maybe there might be an issue even before in the code that might cause the runtime to take another execution path? |
yes, basically when we setup the state we write to the sequencer state this variable, so normally it's always set to some value. It's done here: |
fixed by #812 I believe |
Bug: executing on native doesn't yield the same result as Sierra:
Repro
Repro:
clone ef-tests, ensure correct branch
make
make setup-kakarot
cargo test test_baseFeeDiffPlaces_d0g0v0_Cancun --features v1,native -- --nocapture
Expected behavior:
The test should pass
Actual behavior:
The test fails (the execution doesn't crash, but the expected values are not met).
Precisions:
The text was updated successfully, but these errors were encountered: