Explore-Beyond-Innovations / Explore-Beyond-Innovations/ZeroXBridge_Frontend
✅ Issue 2: Integrate depositAsset – Bridge ETH or ERC20 tokens
- Dominant language
- TypeScript
- Stars
- 32
- Forks
- 70
- PR merge metrics
- No merged PRs in 30d
Description
# ✅ Issue 2: Integrate depositAsset – Bridge ETH or ERC20 tokens
## Summary:
Hook up the deposit functionality to enable users to bridge ETH or ERC20 tokens from L1 to L2.
Tasks:
Read assetType, tokenAddress, amount, and user from UI.
For ERC20, ensure the token is approved before calling the contract.
Call:
depositAsset(assetType, tokenAddress, amount, user)
Include msg.value for ETH.
Capture and store the returned commitmentHash for use on L2.
Display success/failure in the UI.
Contract Info:
📍 L1 Bridge (Sepolia):[ 0x8F25bFe32269632dfd8D223D51FF145414d8107b](https://sepolia.etherscan.io/address/0x8F25bFe32269632dfd8D223D51FF145414d8107b#code)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.