-
Notifications
You must be signed in to change notification settings - Fork 373
feat(osaka): add eip-7939 count leading zeros opcode #1275
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(osaka): add eip-7939 count leading zeros opcode #1275
Conversation
Co-authored-by: Guruprasad Kamath <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## devnets/osaka/2 #1275 +/- ##
==================================================
Coverage ? 92.97%
==================================================
Files ? 582
Lines ? 33722
Branches ? 3066
==================================================
Hits ? 31353
Misses ? 1839
Partials ? 530
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| x = pop(evm.stack) | ||
|
|
||
| # GAS | ||
| charge_gas(evm, GAS_VERY_LOW) |
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.
Small nit: we want to charge gas before doing any operations. So the gas should be charged before the pop. If there is not enough gas available, then we thus also do not perform the pop logic where there are insufficient funds for 😄 👍
* feat(vm): add eip-7939 count leading zeros opcode. * Update src/ethereum/osaka/vm/instructions/bitwise.py Co-authored-by: Guruprasad Kamath <[email protected]> * code formatting --------- Co-authored-by: Guruprasad Kamath <[email protected]> Co-authored-by: Guruprasad Kamath <[email protected]>
* feat(vm): add eip-7939 count leading zeros opcode. * Update src/ethereum/osaka/vm/instructions/bitwise.py Co-authored-by: Guruprasad Kamath <[email protected]> * code formatting --------- Co-authored-by: Guruprasad Kamath <[email protected]> Co-authored-by: Guruprasad Kamath <[email protected]>
* feat(vm): add eip-7939 count leading zeros opcode. * Update src/ethereum/osaka/vm/instructions/bitwise.py Co-authored-by: Guruprasad Kamath <[email protected]> * code formatting --------- Co-authored-by: Guruprasad Kamath <[email protected]> Co-authored-by: Guruprasad Kamath <[email protected]>
* feat(vm): add eip-7939 count leading zeros opcode. * Update src/ethereum/osaka/vm/instructions/bitwise.py Co-authored-by: Guruprasad Kamath <[email protected]> * code formatting --------- Co-authored-by: Guruprasad Kamath <[email protected]> Co-authored-by: Guruprasad Kamath <[email protected]>
* feat(vm): add eip-7939 count leading zeros opcode. * Update src/ethereum/osaka/vm/instructions/bitwise.py Co-authored-by: Guruprasad Kamath <[email protected]> * code formatting --------- Co-authored-by: Guruprasad Kamath <[email protected]> Co-authored-by: Guruprasad Kamath <[email protected]>
Description
Adds the CLZ (count leading zeros opcode) for EIP-7939.
Cute Animal Picture