Skip to content
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

Fix the invoker contract auth rollback logic and cover it in the tests. #1260

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

dmkozh
Copy link
Contributor

@dmkozh dmkozh commented Nov 29, 2023

What

Fix the invoker contract auth rollback logic and cover it in the tests.

Besides the 'obvious' issue of missing the code that actually performs rollback, there was much more subtle issue of incorrect ordering between rollback and pop_frame. To avoid this I've moved the snapshots/rollbacks to the auth manager, so that it's not possible to accidentally mess up that order.

Resolves #1252

Why

Bug fix/adding tests

Known limitations

N/A

Besides the 'obvious' issue of missing the code that actually performs rollback, there was much more subtle issue of incorrect ordering between `rollback` and `pop_frame`. To avoid this I've moved the snapshots/rollbacks to the auth manager, so that it's not possible to accidentally mess up that order.
@dmkozh dmkozh requested review from graydon, sisuresh and a team as code owners November 29, 2023 00:09
@graydon graydon added this pull request to the merge queue Nov 29, 2023
Merged via the queue into stellar:main with commit a6cf1ac Nov 29, 2023
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[test] Cover rollbacks with invoker contract auth
2 participants