You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assert!(idx == state.revoked_commitment || idx == state.revoked_commitment - 1,"can only revoke the current or next unrevoked commitment - trying {}, revoked {}", idx, state.revoked_commitment);
88
-
state.revoked_commitment = idx;
93
+
assert!(idx == state.last_holder_revoked_commitment || idx == state.last_holder_revoked_commitment - 1,"can only revoke the current or next unrevoked commitment - trying {}, revoked {}", idx, state.last_holder_revoked_commitment);
94
+
assert!(idx > state.last_holder_commitment,"cannot revoke the last holder commitment - revoking {} last commit {}", idx, state.last_holder_commitment);
assert!(idx == state.last_holder_commitment || idx == state.last_holder_commitment - 1,"expecting to validate the current or next holder commitment - trying {}, current {}", idx, state.last_holder_commitment);
0 commit comments