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(evm): add push{i} opcodes #195

Merged
merged 4 commits into from
Aug 28, 2023
Merged

Conversation

0xLucqs
Copy link
Contributor

@0xLucqs 0xLucqs commented Aug 26, 2023

Pull Request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no API changes)
  • Build-related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Resolves: #194

What is the new behavior?

Does this introduce a breaking change?

  • Yes
  • No

Copy link
Member

@Eikix Eikix left a comment

Choose a reason for hiding this comment

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

some questions

crates/evm/src/instructions/push_operations.cairo Outdated Show resolved Hide resolved
crates/evm/src/instructions/push_operations.cairo Outdated Show resolved Hide resolved
crates/evm/src/interpreter.cairo Outdated Show resolved Hide resolved
crates/evm/src/instructions/push_operations.cairo Outdated Show resolved Hide resolved
crates/evm/src/instructions/push_operations.cairo Outdated Show resolved Hide resolved
enitrat
enitrat previously approved these changes Aug 28, 2023
Copy link
Collaborator

@enitrat enitrat left a comment

Choose a reason for hiding this comment

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

lgtm, just directly push 0 and we can merge

crates/evm/src/interpreter.cairo Show resolved Hide resolved
@0xLucqs 0xLucqs force-pushed the lucas/push-many branch 2 times, most recently from 187986d to a3f8154 Compare August 28, 2023 20:06
@enitrat enitrat added this pull request to the merge queue Aug 28, 2023
Merged via the queue into kkrt-labs:main with commit bb412f2 Aug 28, 2023
1 of 2 checks passed
Quentash pushed a commit to Quentash/kakarot-ssj that referenced this pull request Aug 29, 2023
* feat(evm): add push{i} opcodes

* refacto(evm): only 1 into in push

* fix(evm): actually return the result of the opcode

* impl suggestions
github-merge-queue bot pushed a commit that referenced this pull request Aug 29, 2023
* feat/chainidopcode

* feat/chainidopcode

* Update crates/evm/src/tests/test_instructions/test_block_information.cairo

* docs: execution context (#176)

* docs: execution context

* chore: changelog

* fix: typo

* Update docs/general/model/execution_context.md

Co-authored-by: Elias Tazartes <[email protected]>

* Update docs/general/model/execution_context.md

Co-authored-by: Elias Tazartes <[email protected]>

* feat: add pc+=1 to diagram

* chore: delete changelog

---------

Co-authored-by: Elias Tazartes <[email protected]>

* feat(evm): add basefee opcode (#191)

* feat(evm): add basefee opcode

* fix(evm): change basefee to gasprice

* feat(evm): add gaslimit opcode (#192)

* feat(evm): add gaslimit opcode

* refacto(evm): implement suggestions

* chore: fmt

---------

Co-authored-by: Mathieu <[email protected]>
Co-authored-by: msaug <[email protected]>

* refacto(evm): improve split word by 2x (#196)

* fix: gas reports (#217)

* feat(evm): add push{i} opcodes (#195)

* feat(evm): add push{i} opcodes

* refacto(evm): only 1 into in push

* fix(evm): actually return the result of the opcode

* impl suggestions

* refactor: simplify returns (#201)

* refactor returns

* make suggested changes in `decode_and_execute` function

---------

Co-authored-by: Mathieu <[email protected]>
Co-authored-by: Elias Tazartes <[email protected]>
Co-authored-by: Lucas @ StarkWare <[email protected]>
Co-authored-by: msaug <[email protected]>
Co-authored-by: lambda-0x <[email protected]>
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.

feat: PUSH opcodes
3 participants