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

feat: Toast for tx lifecycle #259

Merged
merged 7 commits into from
Aug 27, 2024
Merged

feat: Toast for tx lifecycle #259

merged 7 commits into from
Aug 27, 2024

Conversation

nicosampler
Copy link
Collaborator

Closes #252

Description: Add toast helpers for signing and executing a tx.

A new provider was added with three independent methods allowing watching when a signature is requested, when a tx is initiated, or simply to a particular tx hash.

Type of change:

  • New feature
  • Bug fix
  • Breaking change
  • Enhancement
  • Refactoring
  • Chore

How Has This Been Tested?

  • Manual testing
  • Automated tests
  • Other (explain): I've tested using a fork of the dapp. Once this PR is merged, I can add it to the examples repo.

@nicosampler nicosampler requested a review from fernandomg August 26, 2024 13:35
@nicosampler nicosampler self-assigned this Aug 26, 2024
Copy link

vercel bot commented Aug 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
dappbooster ✅ Ready (Inspect) Visit Preview Aug 27, 2024 7:23pm

pnpm-lock.yaml Outdated
Copy link
Member

Choose a reason for hiding this comment

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

I'm concerned about this, why so many modifications if there were no package.json modifications at all?

onReplaced: (replacedTxData) => (replacedTx = replacedTxData),
})

if (replacedTx!) {
Copy link
Member

Choose a reason for hiding this comment

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

If you're already checking for reaplacedTx existence, why use the non-null assertion here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

because it was complaining about using replacedTx before being initialized.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

perhaps turning off the linter for that line will be more clear.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

thank Lord! I know you'll never leave me alone microsoft/TypeScript#11498 (comment)

@nicosampler nicosampler merged commit 461f07a into develop Aug 27, 2024
4 checks passed
@nicosampler nicosampler deleted the feat/tx-toasts branch August 27, 2024 19:27
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.

Track Tx life cycle
2 participants