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: implement 0x38 - CODESIZE Opcode #218

Merged
merged 4 commits into from
Aug 29, 2023
Merged

Conversation

khaeljy
Copy link
Contributor

@khaeljy khaeljy commented Aug 28, 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: #124

What is the new behavior?

Does this introduce a breaking change?

  • Yes
  • No

enitrat
enitrat previously approved these changes Aug 29, 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

fn test_codesize() {
// Given
let bytecode: Span<u8> = array![1,2,3,4,5].span();
let mut ctx = setup_execution_context_with_bytecode(bytecode);
Copy link
Collaborator

Choose a reason for hiding this comment

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

just fyi, here I think we can keep this setup function, as the bytecode will never be mutated (unlike return_data which might be, thus it makes sense to use a setter function)

@enitrat
Copy link
Collaborator

enitrat commented Aug 29, 2023

rebase & good to merge!

enitrat
enitrat previously approved these changes Aug 29, 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.

🔥

enitrat
enitrat previously approved these changes Aug 29, 2023
@enitrat enitrat added this pull request to the merge queue Aug 29, 2023
Merged via the queue into kkrt-labs:main with commit ac2594e Aug 29, 2023
1 of 2 checks passed
@khaeljy khaeljy deleted the CODESIZE branch August 30, 2023 16:38
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: implement 0x38 - CODESIZE Opcode
2 participants