-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Update EIP-663: Replace runtime stack checks with EOF validation rules #7241
Conversation
✅ All reviewers have approved. |
EIPS/eip-663.md
Outdated
- `SWAPN n` to fail if `stack_height < (n + 1)`. | ||
- `DUPN n` to fail if `stack_height + 1 > 1024`. | ||
- `DUPN n` and `SWAPN n` to fail if gas available is less than 3. | ||
- `DUPN n` to fail validation if `stack_height < n`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a bit confusing using variable n
here.
For example, if n=0
:
DUPN 0
to fail validation ifstack_height < 0
.
It is defined above that n
is imm+1
, but in the same line n
looks like it should be the same value. Maybe it could be changed to something like:
For 0 <= i<= 255
:
DUPN i
to fail validation ifstack_height < i+1
.
Where i
represents the immediate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was a mistake not to change the line with 0 <= n <= 255
, changed now, please check.
e6ed148
to
5dcf553
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All Reviewers Have Approved; Performing Automatic Merge...
No description provided.