metamask-mobile
metamask-mobile copied to clipboard
[Bug]: App crashes when hitting `backspace` after entering ENS address to send to.
Describe the bug
The Send functionality of the MetaMask Mobile application allows you to specify and ENS domain as the account you want to send funds to (e.g. nick.eth
). However, if a user enters an ENS address, then later decides they want to change this address, the app will crash if at anypoint the address you are sending to is not a registered ENS domain.
Expected behavior
I expect the app not to crash when I modify the ENS domain I want to send to
Screenshots/Recordings
https://github.com/MetaMask/metamask-mobile/assets/15018469/d4a8c7b7-d5a3-4302-a642-43ea0ae9aac7
Steps to reproduce
- Unlock your wallet
- Click on the ⬆️⬇️ arrow icon in the bottom middle of the screen.
- Click on
Send
- In the
To
section, enter an ENS address such asNick.eth
- Now, hit
backspace
to turnnick.eth
tonick.et
. This ENS domain does not exist, so the app crashes. - Do the same but this time turn
nick.eth
toni.eth
. This ENS domain does not exist, so the app crashes.
Error messages or log output
View: Root
TypeError: Cannot read property 'search' of undefined
Version
7.14.0
Build type
None
Device
Google Pixel
Operating system
Android
Additional context
No response
Severity
It is possible to recover from this bug as the app will restart after crashing. However, it does result in a minor inconvenience for the user.
This issue has been automatically marked as stale because it has not had recent activity in the last 90 days. It will be closed in 7 days. Thank you for your contributions.
This issue was closed because there has been no follow activity in 7 days. If you feel this was closed in error please provide evidence on the current production app in a new issue or comment in the existing issue to a maintainer. Thank you for your contributions.