metamask-mobile
metamask-mobile copied to clipboard
Refactor SendTransaction Component
Description There is very similar code spread across 5 components. This PR removes the eip1559 gas polling logic away from the send flow (confirm screen). The TransactionReview and EditGasFee screens is able to calculate the gas transaction cost. This logic is abstracted away in the gas polling file. The changes in this PR shouldn't modify existing behaviour when QA'd.
Progresses https://github.com/MetaMask/mobile-planning/issues/272
Screenshots/Recordings
https://user-images.githubusercontent.com/29962968/184000489-af5061ad-f713-4f79-bd0a-33e018eb475b.mov
Issue
Progresses https://github.com/metamask/mobile-planning/issues/269
Checklist
- [ ] There is a related GitHub issue
- [ ] Tests are included if applicable
- [ ] Any added code is fully documented
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.
@blackdevelopa Please resolve conflicts
https://docs.google.com/spreadsheets/d/15hDtscWe9T-1eYgnE0mIB2zZ96ydwMxALXmI7QwTsvo/edit#gid=0
@blackdevelopa not able to send on Binance testnet. Getting JSON-RPC error... https://recordit.co/HCLAxi2VPp
Send refactor looks good on the following testnets....
- Goerli (ETH), priority level low
- Fuji (AVAX), priority level low
- Mumbai (MATIC), use max, priority level low
@blackdevelopa not able to send on Binance testnet. Getting JSON-RPC error... https://recordit.co/HCLAxi2VPp
resolved. http://recordit.co/1ZkJUCgmb0
Send is good on BNB testnet now.