MetaMask / MetaMask/metamask-extension
[Extension] Display L1 and L2 gas fees for eip-1559 transactions on Polygon zkevm, zkSync Era and Linea
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 13.2k
- Forks
- 5.6k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 451
Description
### Background
We should extend this fix that was done for Optimism to display both L1 and L2 fees here https://github.com/MetaMask/metamask-extension/pull/19960 to the following Layer 2s: Polygon zkevm, zkSync Era and Linea. This can be achieved by hardcoding these networks as an exception.
We'll investigate how to handle these in an automated and permissionless (so it's not a hardcoded list that we maintain) as part of a different issue.
### Acceptance criteria
1. Layer 1 and Layer 2 fees should be displayed in the fee breakdown for the following networks:
2. Linea mainnet (chain id: 0xe708)
4. Linea testnet (chain id: 0xe704)
5. Polygon zkevm mainnet (chain id: 0x44d)
6. Polygon zkevm testnet (chain id: 0x5a2)
7. zkSync Era mainnet (chain id: 0x144)
8. zkSync Era testnet (chain id: 0x118)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the Optimism fix in pull request #19960 and trace the fee-breakdown code it changed. Extend the behavior for the six listed Linea, Polygon zkEVM, and zkSync Era chain IDs, then verify that both L1 and L2 fees appear for each network.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- blockchain, frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100