Skip to content

Transaction revocation is not considered #5

@anony2020mous

Description

@anony2020mous

Bug Report

Description

When creating a new todo, the scenario that the transaction is revoked due to chain reorganization is not considered.
When the transaction is executed but then revoked, the todo item still shows on the UI which will make the subsequent transaction that aims to delete it fails, losing user's transaction fee.

image

Reproduce Steps

  1. send transaction to create a new todo
  2. When the transaction is executed, UI shows the new todo
  3. Let blockchain reorganize by importing a side chain
  4. The transaction is revoked and returns to transaction pool.
  5. The todo item still shows in UI.
  6. Now if we try to delete the item by click x, the transaction will always fail.

Expected Behaviour

If the transactions revoked by chain reorganization, the todo item in UI should be removed accordingly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions