Skip to content

[Bug] Rejecting tx when "dust amount" is not working #897

@adamant-al

Description

@adamant-al

Summary

When a coin node (e.g, BTC), rejects tx with "dust amount" error, app doesn't process it correctly

Steps to reproduce

  1. Log in test account
  2. Go to chat
  3. Tap transfer BTC
  4. low amount ~0.00000001 btc
  5. showing dust snackbar
  6. return to chat
  7. tx is pending

Expected behavior

Tx is rejected and appears in chat with rejected status
"Dust amount" snackbar
Stay on Send tx screen

Actual behavior

Tx is rejected in blockchain, but appears in chat with Pending status

Details and explanation

We cannot check whether it’s dust or not until we send the transaction to the node and get a response.

Dust amount snackbar:

"error\_dust\_amount": "Dust amount—Send more tokens",

"error\_dust\_amount": "Мелочь — Отправьте больше токенов",

Guidelines: In-Chat and Direct Crypto Transfers in ADAMANT https://github.com/orgs/Adamant-im/discussions/31

Screenshots or videos

No response

Environment

Prod: https://adm.im

Testing

For testing, send 1 sat (you can temporarily disable minTransferAmount during the test) ⟶ "Dust amount" expected.

Metadata

Metadata

Assignees

Labels

BlockchainRelated to blockchain functionality, consensus, and ledger mechanicsJavaScriptFrontend or backend code in JavaScriptNodesADM node software issues, APIs, connectivity, consensusUX/UIUser interface and experience improvementsbugSomething isn't working

Type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions