Bitcoin-com / mint

Non-custodial web-based tool to manage your SLP tokens.
https://mint.bitcoin.com/
17 stars 17 forks source link

Handle slpaddr error #96

Closed BytesOfMan closed 4 years ago

BytesOfMan commented 4 years ago

This PR corrects a longstanding UX bug.

If a user attempts to send an SLP token to a BCH address, they receive an error message indicating that the REST API is down. Because the REST API is not infrequently down, this error usually leads to user frustration. Instead, all that is needed is to correct the format for the desitination address.

This PR introduces a more accurate error explanation and also handles the case of an invalid destination address.