Skip to content

feat: (levm) Implement calldata and returndata opcodes#574

Merged
ilitteri merged 34 commits into
mainfrom
levm/feat/calldata-and-returndata-opcodes
Sep 30, 2024
Merged

feat: (levm) Implement calldata and returndata opcodes#574
ilitteri merged 34 commits into
mainfrom
levm/feat/calldata-and-returndata-opcodes

Conversation

@iinaki

@iinaki iinaki commented Sep 27, 2024

Copy link
Copy Markdown
Contributor

Motivation
Implemented CALLDATALOAD, CALLDATASIZE, CALLDATACOPY, RETURNDATASIZE, RETURNDATACOPY

Description

Closes #517
Closes #518
Closes #519
Closes #525
Closes #526

@iinaki iinaki added the opcode label Sep 27, 2024
@iinaki iinaki marked this pull request as ready for review September 27, 2024 20:09
@iinaki iinaki requested a review from a team as a code owner September 27, 2024 20:09
Base automatically changed from levm/feat/call-and-return-opcodes to main September 30, 2024 12:17

@lazcanoluca lazcanoluca left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just for the record, we discussed about changing the Memory type to plain Bytes in calldata and return_data, which was done.

Approving 🚀

Comment thread crates/levm/src/memory.rs Outdated
Comment on lines +13 to +15
pub fn new_from_vec(data: Vec<u8>) -> Self {
Self { data }
}

@ilitteri ilitteri Sep 30, 2024

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Can't we implement From<Vec<u8>> for Memory?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We can, done!!

@ilitteri ilitteri left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@ilitteri ilitteri enabled auto-merge September 30, 2024 20:38
@ilitteri ilitteri added this pull request to the merge queue Sep 30, 2024
Merged via the queue into main with commit 5fbaf5f Sep 30, 2024
@ilitteri ilitteri deleted the levm/feat/calldata-and-returndata-opcodes branch September 30, 2024 20:58
emirongrr pushed a commit to emirongrr/ethrex that referenced this pull request Nov 10, 2024
**Motivation**
Implemented `CALLDATALOAD`, `CALLDATASIZE`, `CALLDATACOPY`,
`RETURNDATASIZE`, `RETURNDATACOPY`

**Description**

<!-- A clear and concise general description of the changes this PR
introduces -->

<!-- Link to issues: Resolves lambdaclass#111, Resolves lambdaclass#222 -->

Closes lambdaclass#517 
Closes lambdaclass#518 
Closes lambdaclass#519 
Closes lambdaclass#525 
Closes lambdaclass#526

---------

Co-authored-by: Ivan Litteri <67517699+ilitteri@users.noreply.github.com>
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.

3 participants