teloscan icon indicating copy to clipboard operation
teloscan copied to clipboard

Add Information Icon to identify Failed txns and txns with a reversal

Open pmjanus opened this issue 1 year ago • 1 comments

Add Information Icon for Partial Execution Transactions

Overview

This issue addresses the need to identify transactions with partial execution using a yellow information icon. The icon should provide a tooltip indicating that one or more errors occurred during contract execution.

Details

  1. Add Yellow Information Icon:

    • For transactions with partial execution, add a yellow information icon.
    • The icon should have a tooltip with the text: "One or more errors in the contract execution."
  2. Example Transaction:

  3. Current UI:

    • The current UI for transactions: Current UI
  4. Existing Icons:

    • Transactions that failed already have an icon.
    • We are missing the icon and marking for transactions with partial execution.

Expected Outcome

  • Yellow Information Icon:

    • Add a yellow information icon next to transactions with partial execution.
    • Tooltip: "One or more errors in the contract execution."
  • UI Consistency:

    • Ensure that the new icon is consistent with the existing iconography for failed transactions.

pmjanus avatar Mar 25 '24 11:03 pmjanus

The problem we have here is that the main transaction query comes with status: "0x1" (Which means success) but the internal transactions response comes with error: "Reverted" and currently there's no way of knowing a transaction was partially reverted.

@tomtomcrypto, do you think it is possible to add this information in the main transaction query? I mean, the error: "Reverted" from any internal transaction. https://api.testnet.teloscan.io/v1/transactions?limit=50&sort=desc&includePagination=true&includeAbi=true&key=0

Viterbo avatar Aug 19 '24 19:08 Viterbo