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

Fix issue push at last opcode #398

Merged
merged 3 commits into from
Sep 3, 2024
Merged

Fix issue push at last opcode #398

merged 3 commits into from
Sep 3, 2024

Conversation

ignasirv
Copy link
Contributor

@ignasirv ignasirv commented Sep 2, 2024

Fixed issue where last opcode of a contract is a push following issue 0xPolygonHermez/cdk-erigon#1073

Copy link

sonarqubecloud bot commented Sep 3, 2024

Copy link
Contributor

@krlosMata krlosMata left a comment

Choose a reason for hiding this comment

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

😸

@ignasirv ignasirv changed the title Fix issue push1 as last opcode Fix issue push at last opcode Sep 3, 2024

opAuxPUSHA2:
; check out-of-gas
GAS - %GAS_FASTEST_STEP => GAS :JMPN(outOfGas)
; read bytes from calldata
D => E :CALL(readPush); in: [D,E: bytes to read] out: [E: value read]
Copy link
Contributor

Choose a reason for hiding this comment

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

D => E              :CALL(readPush); in: [D,E: bytes to read] out: [E: value read]

Change comment, only in D, E it's just output

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Both are used at readPush as input

Copy link
Contributor

Choose a reason for hiding this comment

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

true ^^

@ignasirv ignasirv merged commit 20d156e into develop Sep 3, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants