Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cancelled status to stx after successful cancel request #21

Merged
merged 1 commit into from
Nov 16, 2021

Conversation

meppsilon
Copy link
Contributor

No description provided.

@meppsilon meppsilon requested a review from a team as a code owner November 10, 2021 00:11

this.updateSmartTransaction({
uuid,
status: SmartTransactionStatuses.CANCELLED_USER_CANCELLED,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that even if a user tries to cancel a transaction, it might be too late sometimes and it could get mined. At least that's how it works with regular transactions. Maybe this is fine if we hide the cancel buttons after 10s, otherwise we could just rely on what we get from backend.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does backend respond with a status that indicates if the transaction was able to be cancelled?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, backend should return a specific status if a transaction was successfully canceled by a user / automatically.

@dan437 dan437 merged commit 9efd70a into main Nov 16, 2021
@dan437 dan437 deleted the cancel-status branch November 16, 2021 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants