-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for ens on deeplink transactions #5191
Conversation
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. |
…own to the user when the ens or the address are not correct || Smal fix on confirm UI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Just left a last question
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Sending it to QA
Observed on Android 11 device (Samsung a515f) that if the deeplink is to an invalid ENS name (borangefox.eth), that the user is presented with a (seemingly) infinite spinning wheel. deeplink tested: |
RE: Small fix on UI of confirm screen I believe that we should leave the line spacing as-is rather than centering the address in the field. There is an issue in production that if the TO: address is saved as a contact that neither the saved name nor the ENS are presented above the resolved address, like it would if the ENS name was not stored as a contact and was instead entered via the keyboard into the TO: field. I will open the production issue in another ticket. |
Validated patch and invalid address with ENS names, as well as dapp and payment deeplinks. |
Description
When reading a deep link with an ENS instead of an address, when it was an ERC20 token it was being resolved to the wrong address on the confirm screen. When it was eth, the transaction would not have a destination address to send the eth.
Proposed Solution
It is implementing support for deep link ERC20 and ETH transactions with ENS. When parsing the recipient from the deep link, we resolve it to an address if it is an ENS.
Screenshots/Recordings
transactions with wrong ens and address (Alert message approved 🚀)
https://recordit.co/rcLMaD4ek0
transactions ERC20 with ENS and address
https://recordit.co/wTglGApwEz
transaction ETH with ENS and address
https://recordit.co/2y3piAzfTe
Small fix on UI of confirm screen
Test Cases
Use https://metamask.github.io/metamask-deeplinks/# to generate the deep links
Case1 (ERC20 tx):
Case2: (ETH tx):
Case3: (with the wrong ens or wrong address):
Code impact
Low - Will impact the Send component and the deep link (QR Code) transactions
If applicable, add screenshots and/or recordings to visualize the before and after of your change
Issue
Progresses #5176
Checklist