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

fix: async beignet wallet #2351

Merged
merged 1 commit into from
Nov 22, 2024
Merged

fix: async beignet wallet #2351

merged 1 commit into from
Nov 22, 2024

Conversation

limpbrains
Copy link
Collaborator

@limpbrains limpbrains commented Nov 15, 2024

Description

  • use getOnchainWalletAsync where possible
  • throw an error in sync methods
  • useOnchainWallet hook to use in react components and wait for the wallet to be loaded
  • new beignet with this patch. Now wallet creation is much faster, because it doesn't wait for sync to be complete

This is still not perfect, and we still use sync methods sometimes. I think we can elliminate the remaining issues later

Linked Issues/Tasks

closes #2254 #2202

Type of change

Bug fix

Tests

No test

Screenshot / Video

Insert relevant screenshot / recording

QA Notes

  • start the app
  • try to tap somewhere fast

@limpbrains limpbrains force-pushed the async-wallet branch 3 times, most recently from ef9f017 to 2055447 Compare November 19, 2024 16:58
Copy link

socket-security bot commented Nov 19, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/[email protected] network 0 9.38 MB limpbrains

🚮 Removed packages: npm/[email protected]

View full report↗︎

@limpbrains limpbrains changed the title fix: WIP fix: async beignet wallet Nov 19, 2024
@synonymdev synonymdev deleted a comment from socket-security bot Nov 19, 2024
@limpbrains limpbrains force-pushed the async-wallet branch 2 times, most recently from 95ff8c2 to 4a3cc1c Compare November 20, 2024 13:12
@limpbrains limpbrains marked this pull request as ready for review November 20, 2024 18:31
@limpbrains limpbrains requested a review from pwltr November 20, 2024 19:33
Copy link
Collaborator

@pwltr pwltr left a comment

Choose a reason for hiding this comment

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

Looks good for now, but agree it needs to be improved more

@limpbrains limpbrains merged commit 744f898 into master Nov 22, 2024
7 checks passed
@limpbrains limpbrains deleted the async-wallet branch November 22, 2024 15:50
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.

[Bug]: Unable to check status of tx
2 participants