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

feat: add EIP2681_MAX_NONCE global constant #294

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
feat: add EIP2681_MAX_NONCE global constant
  • Loading branch information
lorenzogentile404 committed Aug 19, 2024
commit d9e522378749a2758d157555410afc6847e6b3fa
8 changes: 7 additions & 1 deletion constants/constants.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,12 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
WCP_INST_GEQ 0x0E
WCP_INST_LEQ 0x0F)
WCP_INST_LEQ 0x0F
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; EIP2681 ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
EIP2681_MAX_NONCE 18446744073709551615)


2 changes: 1 addition & 1 deletion oob/constraints.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@
(callToISZERO 2 0 (create---nonce)))

(defconstraint valid-create-future-future-future (:guard (* (standing-hypothesis) (create-hypothesis)))
(callToLT 3 0 (create---creator-nonce) 0 18446744073709551615)) ; (create---creator-nonce) < 2^64 - 1
(callToLT 3 0 (create---creator-nonce) 0 EIP2681_MAX_NONCE))

(defconstraint justify-hub-predictions-create (:guard (* (standing-hypothesis) (create-hypothesis)))
(begin (if-zero (create---aborting-conditions-sum)
Expand Down
Loading