Skip to content

feat(l2): make deposits on l2 work as expected #2332

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

Merged
merged 212 commits into from
Apr 15, 2025
Merged

Conversation

tomip01
Copy link
Contributor

@tomip01 tomip01 commented Mar 27, 2025

Motivation

In this PR we refactor some of the code and add functionality to work as expected. Remove the txs magic hack data #2147

Description

  • Add a recipient field to the privileged transactions.
  • Deposit the value to the recipient instead of the to address.
  • Add functionality to call a contract and make a deposit in the same privileged transaction.
  • Remove the signing of the privileged transactions.
  • Remove the checking of the nonce and balance when making the deposit, here we mint the tokens.
  • Add new hook in the L2 to address this new features for the Privileged Transactions.

Closes #2147

@jrchatruc jrchatruc force-pushed the l2/deposits-from-l1 branch from 1088cfc to 08fd493 Compare April 14, 2025 14:04
Copy link
Contributor

@ManuelBilbao ManuelBilbao left a comment

Choose a reason for hiding this comment

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

Just some nit comments

samoht9277 and others added 5 commits April 14, 2025 16:25
**Motivation**

<!-- Why does this pull request exist? What are its goals? -->

**Description**

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

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

Closes #issue_number

---------

Co-authored-by: Javier Chatruc <[email protected]>
ManuelBilbao and others added 8 commits April 14, 2025 18:10
**Motivation**

<!-- Why does this pull request exist? What are its goals? -->

**Description**

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

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

Closes #issue_number
@jrchatruc jrchatruc enabled auto-merge April 15, 2025 17:57
@jrchatruc jrchatruc added this pull request to the merge queue Apr 15, 2025
Merged via the queue into main with commit 72b8edc Apr 15, 2025
54 checks passed
@jrchatruc jrchatruc deleted the l2/deposits-from-l1 branch April 15, 2025 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L2 Rollup client
Projects
Status: Done
6 participants