Skip to content

Conversation

tomip01
Copy link
Contributor

@tomip01 tomip01 commented Oct 9, 2025

Motivation

We want the WETH contract included in the genesis so we don’t have to deploy it.

Description

Add implementation in address 0x00..effd and the proxy in 0x00.fffd

How to test

Start L2:

cd crates/l2
make init-l2-dev

Make a deposit:

rex send 0x000000000000000000000000000000000000fffd "deposit()" --rpc-url http://localhost:1729 --private-key 0xe4f7dc8b199fdaac6693c9c412ea68aed9e1584d193e1c3478d30a6f01f26057 --value 10000000000

Check balance:

rex call 0x000000000000000000000000000000000000fffd "balanceOf(address)" 0x0000bd19f707ca481886244bdd20bd6b8a81bd3e --rpc-url http://localhost:1729

Make a withdraw:

rex send 0x000000000000000000000000000000000000fffd "withdraw(uint256)" 10000000000 --rpc-url http://localhost:1729 --private-key 0xe4f7dc8b199fdaac6693c9c412ea68aed9e1584d193e1c3478d30a6f01f26057

Check balance again:

rex call 0x000000000000000000000000000000000000fffd "balanceOf(address)" 0x0000bd19f707ca481886244bdd20bd6b8a81bd3e --rpc-url http://localhost:1729

@tomip01 tomip01 requested a review from a team as a code owner October 9, 2025 18:38
@Copilot Copilot AI review requested due to automatic review settings October 9, 2025 18:38
@github-actions github-actions bot added the L2 Rollup client label Oct 9, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds the WETH (Wrapped Ether) contract to the L2 genesis configuration to eliminate the need for deployment at runtime. It includes both the WETH implementation contract and its proxy.

  • Adds WETH implementation contract at address 0x000000000000000000000000000000000000effd
  • Adds WETH proxy contract at address 0x000000000000000000000000000000000000fffd
  • Updates blob schedule configuration with new fork parameters for bpo1 and bpo2

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

L2 Rollup client

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants