zkSync-Community-Hub / zksync-developers

Project for Discussions with the ZKsync Community.
369 stars 233 forks source link

[ZK Stack] - How to deploy the WETH on layer2? #648

Open bxpana opened 3 months ago

bxpana commented 3 months ago

Discussed in https://github.com/zkSync-Community-Hub/zksync-developers/discussions/642

Originally posted by **SuccinctPaul** August 2, 2024 ### Module Affected - [ ] System contracts (era-system-contracts) - [x] Smart contracts (era-contracts) - [ ] zkEVM (era-zk_evm) - [ ] Server (zksync-era) - [ ] Prover (era-boojum) - [ ] Fee withdrawer (era-fee-withdrawer) - [ ] Block Explorer (clock-explorer) - [ ] Portal - Wallet + Bridge (dapp-portal) - [ ] Other (please specify below) ### Rust Version 1.78.0-nightly ### Operating System - [X] Ubuntu - [ ] MacOS - [ ] Windows - [ ] Other (Please specify below) ### Issue Description * In the latest code (release-prover-16.0.0), after init and start sequencer, the `WETH` didn't deployed. This is for why? * how to deploy the WETH(Wrapped BaseToken) on l2? As the older code has `deployL2Weth` method to do it. https://github.com/matter-labs/era-contracts/blob/d85a73a1eeb5557343b7b44c6543aaf391d8b984/l2-contracts/src/deployL2Weth.ts ### Expected Behavior * works fine ### Current Behavior * doesn't work ### Repository Link (if applicable) _No response_ ### Additional Details _No response_ ### Prior Research - [ ] Yes, I searched for similar issues and did not find any matching ones.