[Bug Report] Wallet: issues with decimals

Description of the issue:
Brave messes up decimals for custom tokens.

Steps to Reproduce (add as many as necessary):

  1. Add a custom token to Wallet (I used TKING).
  2. Choose decimals 0-10, the result is the same.

Actual Result:

Expected Result:
Decimals are handled properly.

Reproduces how often:
Always, also see a report on Reddit.

Brave Version:
Version 1.32.113 Chromium: 96.0.4664.45 (Official Build) (x86_64)

Reproducible on current live release (yes/no):

Additional information:
macOS Big Sur 11.6.1

Is this the contract you’re trying to add? If so the decimals should be 18.

That solved it, thanks! Maybe write that 18 somewhere to help out future users?

We’ll probably find a way to make that field auto filled to make it easier for users to setup.