Skip to content

Handle decimals correctly in API #802

Description

@DalderupMaurice

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):

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcommunity issueOpen for community contributions

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions