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

WIP - Transaction status modal and transaction flow #52

Draft
wants to merge 74 commits into
base: master
Choose a base branch
from

Conversation

w1that
Copy link
Contributor

@w1that w1that commented Dec 5, 2024

When the network is busy or there are some other transactions to do before, waitForTransactionReceipt from publicClient throws a related error and it makes us more comfortable to see if it is Failed or just Timed out. Some extra copies are added to let user know what's going on.

Transaction machine refactors in progress...

@w1that w1that requested review from 0xsequence-bot and a team as code owners December 5, 2024 15:08
@w1that w1that self-assigned this Dec 5, 2024
Copy link
Member

@AlexanderKolberg AlexanderKolberg left a comment

Choose a reason for hiding this comment

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

LGTM

@w1that w1that marked this pull request as draft December 6, 2024 08:06
@w1that w1that marked this pull request as ready for review December 6, 2024 08:15
@@ -531,7 +547,7 @@ export class TransactionMachine {
} else if (step.id === StepType.tokenApproval) {
//TODO: Add some sort ofs callback heres
const hash = await this.executeTransaction(step);
Copy link
Member

@AlexanderKolberg AlexanderKolberg Dec 6, 2024

Choose a reason for hiding this comment

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

This will cause the TransactionStatusModal to be shown on token approvals, I dont think that is what we want.
Should we have a prop to disable it?

@w1that w1that changed the title WIP - Handle Transaction Receipt Timeout Case Handle Transaction Receipt Timeout Case Dec 11, 2024
@w1that w1that marked this pull request as ready for review December 11, 2024 13:15
@w1that w1that changed the title Handle Transaction Receipt Timeout Case WIP - Transaction status modal and transaction flow Dec 13, 2024
@w1that w1that marked this pull request as draft December 13, 2024 10:19
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