d4fttasiii / d4ft-wallet

:moneybag: D4FT Wallet :moneybag:
MIT License
1 stars 0 forks source link

[Tx Builder] "account exceeds balance of 0" message is displayed whereas account balance is greater than 0 on Polkadot, Algorand and Cosmos #2

Open Jingranpm opened 2 years ago

Jingranpm commented 2 years ago

Describe the bug In the Tx Builder step, when user is entering the amount to be transferred from a sender account (whose balance is greater than 0) to a receiver account, "account exceeds balance of 0" message is displayed under the Amount line, a yellow toaster message pops up on the right bottom of the window.

Reproducible on Polkadot Testnet AND Algorand Testnet.

To Reproduce Steps to reproduce the behavior:

  1. Go to D4FT APP
  2. Select Polkadot or Polkadot blockchain to start a transfer with a test account whose account balance is not 0 (Testnet account addresses can be found in additional info part)
  3. Enter any transfer amount less than the account balance
  4. See error

Expected behavior

Screenshots Polkadot Testnet

DOT sender balance

DOT incorrect balance account

Algorand Testnet

ALGO sender balance

ALGO incorrect balance amount

Cosmos Mainnet

ATOM sender balance

ATOM incorrect balance amount

Additional context

Additional Info

Polkadot Testnet addresses if needed: Sender public address (account balance: 1): 5HTn4sD7UeHXUkFRufChja4YkgKSo4YsqWtx1apxzRonsVLG Receiver public address: 5DNtvZBnB1mXdEZeWZswp2XQyUNq5o6md56ESAu7EYWrGQKb Explorer: https://westend.subscan.io/account/5HTn4sD7UeHXUkFRufChja4YkgKSo4YsqWtx1apxzRonsVLG

Jingranpm commented 2 years ago

=> To confirm with dev: Do I need to preset up the Tx config in the tests? Is there any different in configuration for Testnet and Mainnet?