client icon indicating copy to clipboard operation
client copied to clipboard

Handle decimals correctly in API

Open DalderupMaurice opened this issue 7 years ago • 0 comments

Expected Behavior

One should be able to send 0.00000001 GAS through the nOS API

Current Behavior

The value is somewhere converted to a scientific number, which renders the transaction incorrect

Steps to Reproduce

  1. use the nos.send() API to send 0.00000001 GAS
  2. Observe popup
  3. TX doesn't come through

Possible Solution

Handle decimal numbers in the API logic

Additional context

/

Your Environment

  • nOS Client version used: 0.4.6
  • Environment name and version
    • Node version: lts
    • NPM version: lts
    • Yarn version: lts
  • Operating System and version (desktop or mobile):

DalderupMaurice avatar Dec 30 '18 12:12 DalderupMaurice