Skip to content

fix(bytecode): add padding for final opcode missing immediates#3338

Merged
rakita merged 1 commit intobluealloy:mainfrom
frangio:eip-8024-padding
Jan 21, 2026
Merged

fix(bytecode): add padding for final opcode missing immediates#3338
rakita merged 1 commit intobluealloy:mainfrom
frangio:eip-8024-padding

Conversation

@frangio
Copy link
Copy Markdown
Contributor

@frangio frangio commented Jan 20, 2026

Follow up to #3335 (comment)

The test incorrectly accepted [OPCODE] -> [OPCODE, STOP] when opcode is DUPN/SWAPN/EXCHANGE.

Renamed variables from opcode/prev_opcode to last/prev_byte because the byte is not guaranteed to be an instruction opcode (it could be an immediate).

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Jan 20, 2026

CodSpeed Performance Report

Merging this PR will not alter performance

Comparing frangio:eip-8024-padding (e957dd8) with main (76c4a8e)

Summary

✅ 173 untouched benchmarks

Copy link
Copy Markdown
Member

@rakita rakita left a comment

Choose a reason for hiding this comment

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

lgtm

@rakita rakita merged commit 7ccf633 into bluealloy:main Jan 21, 2026
31 checks passed
@github-actions github-actions bot mentioned this pull request Jan 21, 2026
@frangio frangio deleted the eip-8024-padding branch January 21, 2026 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants