Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Commit

Permalink
Fix: Change tx queued copy (#3287)
Browse files Browse the repository at this point in the history
* docs: update statuses doc

Co-authored-by: Aaron Cook <[email protected]>

* fix: change text for PENDING_FAILED tx

Co-authored-by: Aaron Cook <[email protected]>
  • Loading branch information
DiogoSoaress and iamacook authored Jan 11, 2022
1 parent 341d3de commit 8bf1607
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 2 additions & 3 deletions docs/transactions.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ The status of a transaction can vary depending on whether it has just been submi
| Status | Description |
| ---------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
| Needs your confirmation /<br>Needs confirmations<br>`AWAITING_CONFIRMATIONS` | The transaction still requires confirmations. |
| Needs execution<br>`AWAITING_EXECUTION` | The transaction has sufficient confirmations but has yet to be executed. |
| Needs execution<br>`AWAITING_EXECUTION` /<br>`PENDING_FAILED`\* | The transaction has sufficient confirmations but has yet to be executed.<br><br>The requested execution was rejected by the user but it can be attempted again.* |
| Cancelled<br>`CANCELLED` | The transaction was cancelled. |
| Failed<br>`FAILED` | The transaction failed. |
| Pending\*<br>`PENDING` | The transaction has been submitted and is waiting to be mined. |
| Execution Failed\*<br>`PENDING_FAILED` | The requested execution failed but it can be attempted again. |
| Pending<br>`PENDING`\* | The transaction has been submitted and is waiting to be mined.* |
| Success<br>`SUCCESS` | The transaction was successfully executed. |
| Transaction will be replaced<br>`WILL_BE_REPLACED` | A corresponding rejection transaction has been created. |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,12 @@ export const useTransactionStatus = (transaction: Transaction): TransactionStatu
setStatus({ color: 'rinkeby', text })
break
case LocalTransactionStatus.AWAITING_EXECUTION:
case LocalTransactionStatus.PENDING_FAILED:
setStatus({ color: 'rinkeby', text: 'Needs execution' })
break
case LocalTransactionStatus.PENDING:
setStatus({ color: 'rinkeby', text: 'Pending' })
break
case LocalTransactionStatus.PENDING_FAILED:
setStatus({ color: 'rinkeby', text: 'Execution failed' })
break
}
}, [setStatus, txStatus, currentUser, executionInfo])

Expand Down

0 comments on commit 8bf1607

Please sign in to comment.