MetaMask / MetaMask/metamask-extension
Delete confirm-transaction-switch component
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 13.2k
- Forks
- 5.6k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 451
Description
confirm-transaction-switch components is responsible for checking un-approved transaction / message and redirecting to appropriate confirmation route.
-
Create a util method which will take transaction and return the pathname for confirmation route. Add test coverage for this method.
-
use this method in
/pages/confirm-transaction.componentto redirect to specific confirmation route. -
Ensure this logic to get transaction id from url is also copied over to
/pages/confirm-transaction.component -
Copy over test cases from
pages/confirm-transaction-switchto/pages/confirm-transaction -
Delete
pages/confirm-transaction-switch
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
Compare pages/confirm-transaction-switch/confirm-transaction-switch.component.js and its test cases with /pages/confirm-transaction.component. Create and test the transaction-to-confirmation-path utility, move the transaction-id URL logic and tests to confirm-transaction, then remove pages/confirm-transaction-switch when the behavior is covered.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100