-
Notifications
You must be signed in to change notification settings - Fork 60
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
Investigate stack state when entering finalize_transaction
#902
Comments
finalize_transaction
finalize_transaction
I looked into this issue and specifically this comment:
I added these assertions and in most* tests, none of them panic:
So all in all: We start with 16 zero elements, push two words and one element for a total of 25 elements on the stack. We have two One related question that came up is what the ABI of *In some epilogue tests we do not properly stick to (or have migrated to) the ABI from #685 when calling cc @bobbinth |
Ah - makes sense! I think then the main issue is making clear what happens and using
There isn't really an ABI for In the case of
So, maybe to close this issue all we need to do is to update some comments for this procedure. |
I agree that an approach with adding I thought that truncating the stack after some procedure was I tested it: with this small changes all tests are passing, and we don't need to make an exception for this proc. |
Good point. Maybe that's a better solution (i.e., truncating the stack after this procedure is called). |
Closed by #971. |
What should be done?
As part of
finalize_transaction
, this set of commands is done for truncating the stack. However, following the stack, this should not have to be done unless the procedure is being executed with more elements than expected. If these commeands are commented out, execution will fail for multiple tests.How should it be done?
Investigate why we are entering the procedure with more elements in the stack than expected.
When is this task done?
When we understand why this is happening and possibly have removed these extra commands.
Additional context
#897 (comment)
The text was updated successfully, but these errors were encountered: