toncenter / ton-wallet

Web Wallet and Browser Extension for TON (The Open Network)
https://wallet.ton.org
GNU General Public License v3.0
160 stars 58 forks source link

wallet.ton.org - Invoice url is being created with 1000000000X multiplied amount #163

Closed artitanov closed 1 year ago

artitanov commented 1 year ago

Bug Type

Functional

Reproduction steps

  1. Navigate to https://github.com/toncenter/ton-wallet
  2. Create new wallet OR use existing
  3. Click in [Receive] button
  4. Click on [Create Invoice] link
  5. Insert any amount on Amount field (including negative amount)

Actual result

Invoice link has combiation of wallet address and correct amount as parameter(Provided in Amount field)

Expected result

Invoice url is being created with 1000000000X multiplied amount

image

Suggested Severity

High

Device

Desktop (please complete the following information):

Additional Context

No response

ProgramCrafter commented 1 year ago

Invoice URL is being created with 1000000000X multiplied amount

Doesn't it present amount in nanoTONs?

EmelyanenkoK commented 1 year ago

It is expected behavior (invoice specify amount in nanotons)