paradigmxyz / rivet

Developer Wallet & DevTools for Anvil
MIT License
844 stars 73 forks source link

Enhancement: UI for invalid ERC20 token imports #59

Closed jxom closed 1 year ago

jxom commented 1 year ago

Depends on #58

The Request

The ability to see feedback in the UI when a user imports an invalid ERC20 token address.

Problem

Right now, if a user tries to import an invalid ERC20 token address into their token list, they will receive no feedback.

Solution

As a user, I would expect to see some error messaging (in the form of a toast message) in the UI that the ERC20 token address I tried to import is invalid.

Notes

See TODO

mateusz-michalik commented 1 year ago

Happy to pick this one up as another one to get familiar and contribute. For now I'll put the placeholder code in place for this and then integrate https://github.com/paradigmxyz/rivet/issues/58 when it's merged

mateusz-michalik commented 1 year ago

Here is how it's looking using react-hot-toast

image

Going to push the PR up in a moment