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

SELFDESTRUCT typo fix #542

Merged
merged 3 commits into from
Dec 9, 2024
Merged

SELFDESTRUCT typo fix #542

merged 3 commits into from
Dec 9, 2024

Conversation

OlivierBBB
Copy link
Collaborator

Error in the guard

@OlivierBBB OlivierBBB added bug Something isn't working typo Typos when transcribing the spec to lisp labels Dec 9, 2024
@OlivierBBB OlivierBBB self-assigned this Dec 9, 2024
(defconstraint selfdestruct-instruction---first-undoing-row-for-WONT_REVERT_NOT_YET_MARKED-scenario (:guard (selfdestruct-instruction---scenario-WILL_REVERT-precondition))
(defconstraint selfdestruct-instruction---account-deletion-row
(:guard (selfdestruct-instruction---scenario-WONT_REVERT_NOT_YET_MARKED-precondition))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here we

  • rename constraint to account-deletion-row
  • we use the correct guard

(shift (eq! account/DEPLOYMENT_NUMBER_NEW (+ 1 account/DEPLOYMENT_NUMBER)) ROFF_SELFDESTRUCT___ACCOUNT_DELETION_ROW)
(shift (eq! account/DEPLOYMENT_STATUS_NEW 0 ) ROFF_SELFDESTRUCT___ACCOUNT_DELETION_ROW)
(account-same-marked-for-selfdestruct ROFF_SELFDESTRUCT___ACCOUNT_DELETION_ROW)
(selfdestruct-dom-sub-stamps ROFF_SELFDESTRUCT___ACCOUNT_DELETION_ROW)))
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here we use the right row offset (numerically the two are equal)

old: ROFF_SELFDESTRUCT___ACCOUNT___1ST_UNDOING_ROW
new: ROFF_SELFDESTRUCT___ACCOUNT_DELETION_ROW

@OlivierBBB OlivierBBB merged commit fd56490 into master Dec 9, 2024
2 checks passed
@OlivierBBB OlivierBBB deleted the SELFDESTRUCT-typo-fix branch December 9, 2024 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working typo Typos when transcribing the spec to lisp
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant