ledgerconnect / hivesigner

Signer app for Hive
MIT License
17 stars 5 forks source link

NaN shown in the transaction parameters in Hivesigner when trying to send a very small amount #41

Open BorislavZlatanov opened 3 years ago

BorislavZlatanov commented 3 years ago

Wanted to send 0.00000001 of a Hive Engine token.

Expected behavior

Hivesigner should show the correct token amount in the transaction parameters preview.

Actual behavior

Hivesigner shows NaN instead of an amount in the transaction parameters preview.

Steps to reproduce the behavior

  1. Go to your Hive Engine wallet on PeakD.
  2. Send 0.00000001 (seven zeroes after the decimal point, followed by a 1) from a token that supports such small amounts - for example BRO.
  3. After you get redirected to Hivesigner, see that it shows NaN in the amount parameter.