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

[pre-MIP] Reset action states when action state precondition is set #19

Open
L-as opened this issue Feb 11, 2024 · 1 comment
Open

[pre-MIP] Reset action states when action state precondition is set #19

L-as opened this issue Feb 11, 2024 · 1 comment

Comments

@L-as
Copy link

L-as commented Feb 11, 2024

Right now AFAIU (although I haven't tested it), you could set the precondition to s1, then again to s4,
which is very unintuitive and could break zkapps depending on it only going forward.

I propose resetting all action states older than the one used for the precondition to it,
solving this problem.

Unless, of course, this is already impossible.

@L-as
Copy link
Author

L-as commented Jul 7, 2024

This would also solve another problem where you want to "flush" the action state, to prevent matching on partial histories, e.g. perhaps you want to undo something in the action state, and so submit an Undo action, but you want to be sure that it's not ignored.

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

No branches or pull requests

1 participant