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

Feat/create create2#1338

Closed
roynalnaruto wants to merge 6 commits into
privacy-ethereum:mainfrom
scroll-tech:feat/create-create2
Closed

Feat/create create2#1338
roynalnaruto wants to merge 6 commits into
privacy-ethereum:mainfrom
scroll-tech:feat/create-create2

Conversation

@roynalnaruto
Copy link
Copy Markdown
Collaborator

@roynalnaruto roynalnaruto commented Mar 29, 2023

Description

[PR description]

Issue Link

#1130

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

Contents

  • [item]

Rationale

[design decisions and extended information]

How Has This Been Tested?

[explanation]


How to fill a PR description

Please give a concise description of your PR.

The target readers could be future developers, reviewers, and auditors. By reading your description, they should easily understand the changes proposed in this pull request.

MUST: Reference the issue to resolve

Single responsability

Is RECOMMENDED to create single responsibility commits, but not mandatory.

Anyway, you MUST enumerate the changes in a unitary way, e.g.

This PR contains:
- Cleanup of xxxx, yyyy
- Changed xxxx to yyyy in order to bla bla
- Added xxxx function to ...
- Refactored ....

Design choices

RECOMMENDED to:

  • What types of design choices did you face?
  • What decisions you have made?
  • Any valuable information that could help reviewers to think critically

@github-actions github-actions Bot added crate-zkevm-circuits Issues related to the zkevm-circuits workspace member crate-bus-mapping Issues related to the bus-mapping workspace member labels Mar 29, 2023
cb.stack_pop(init_code.offset_rlc());
cb.stack_pop(init_code.length_rlc());
cb.condition(IS_CREATE2.expr(), |cb| {
cb.stack_pop(create.salt_rlc());
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.

"salt_rlc" here is keccak rlc, not word rlc. Line100 is wrong.

MemoryAddressGadget::construct(cb, init_code_memory_offset, init_code_length);

let keccak_output = cb.query_word_rlc();
let new_address_rlc = cb.word_rlc::<N_BYTES_MEMORY_ADDRESS>(
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.

N_BYTES_MEMORY_ADDRESS is 5, should be 20 here?

@hero78119
Copy link
Copy Markdown
Contributor

Hi @roynalnaruto , is this pr ready to review or still got some ongoing tasks?

@roynalnaruto
Copy link
Copy Markdown
Collaborator Author

@hero78119 I will create a new pull request with the updated changes. Those changes were recently merged in Scroll's fork and include the handling of insufficient caller balance.

@roynalnaruto
Copy link
Copy Markdown
Collaborator Author

Closing this in favour of #1355

cameron1024 pushed a commit to cameron1024/zkevm-circuits that referenced this pull request Jun 30, 2024
* add trace jsons to testdata

* update mainnet fork height; remove version field in trace
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