Bxpana
@bxpana
Need some WETH to play with on your @ZKsync fork? Let's deposit ETH and get WETH using cast send. It's straightforward and prepares you for swapping tokens later! 🧵👇
0 reply
0 recast
1 reaction
Bxpana
@bxpana
Step 1: Deposit ETH for WETH Run the following command to deposit `1 ETH` (in wei) into the WETH contract, giving you `1 WETH`. 🪙
0 reply
0 recast
0 reaction
Bxpana
@bxpana
Step 2: Verify Your WETH Balance Check your new WETH balance, you should see your balance increased by `1 WETH` (1000000000000000000 wei). 🎉
0 reply
0 recast
0 reaction
Bxpana
@bxpana
Step 3: Understanding the `deposit()` Function The `deposit()` function wraps your ETH into WETH. It's a simple way to convert ETH to an ERC20 token, enabling you to interact with protocols that require ERC20 tokens. ♻️
0 reply
0 recast
0 reaction