MIPs icon indicating copy to clipboard operation
MIPs copied to clipboard

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

Open L-as opened this issue 1 year ago • 1 comments

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 avatar Feb 11 '24 00:02 L-as

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.

L-as avatar Jul 07 '24 15:07 L-as