Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

fix calldatalen in calldata{copy,load} for contract deployment #1593

Merged
merged 2 commits into from
Sep 12, 2023

Conversation

lispc
Copy link
Collaborator

@lispc lispc commented Sep 10, 2023

Description

The 'calldata' for a call with Kind::Create/Ceate2, should always be empty. We handled this correctly for create/create2 opcode. But for tx.to == None deployment, it was wrong. This PR fixes this problem.

Issue Link

[link issue here]

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

@github-actions github-actions bot added crate-bus-mapping Issues related to the bus-mapping workspace member crate-zkevm-circuits Issues related to the zkevm-circuits workspace member labels Sep 10, 2023
Copy link
Member

@ed255 ed255 left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for the fix!

Copy link
Collaborator

@ChihChengLiang ChihChengLiang left a comment

Choose a reason for hiding this comment

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

LGTM.

@ChihChengLiang ChihChengLiang added this pull request to the merge queue Sep 12, 2023
Merged via the queue into main with commit 320d31d Sep 12, 2023
9 checks passed
@ChihChengLiang ChihChengLiang deleted the fix/call_data branch September 12, 2023 15:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
crate-bus-mapping Issues related to the bus-mapping workspace member crate-zkevm-circuits Issues related to the zkevm-circuits workspace member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants