coral-xyz / backpack

🎒 Next level crypto wallet
https://backpack.app
GNU General Public License v3.0
1.4k stars 827 forks source link

Invalid URL in Custom RPC input field breaks extension and needs to be fully reset #4303

Open TheBoroer opened 8 months ago

TheBoroer commented 8 months ago

Like the gh issue title says, if you copy and paste in a url with an invalid scheme/protocol and click continue without fixing the url, the extension breaks and repeatedly shows you a prompt that something went wrong. The go back button doesn't work at all, you're able to see/copy your secrets and other data out and then the only thing left to do is click the reset wallet button to do a full wipe in order to fix the issue.

There should be some sort of input validation + input error states to guard against this.

Example: ttps://example.rpc.com (missing the h from https)

candidatek commented 7 months ago

Can i get this issue assigned to me @armaniferrante ?