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

[ECO-2501] Fix the WSOD with Aptos Connect adapter on Firefox/Safari #417

Merged
merged 35 commits into from
Feb 3, 2025

Conversation

xbtmatt
Copy link
Collaborator

@xbtmatt xbtmatt commented Nov 27, 2024

Description

WSOD on Firefox/Safari when submitting txns. We need to unroll the wallet adapter transaction submission so there's no promises while the window tries to open a pop-up, or the browsers will say the application has crashed.

Testing

Manually with the preview build. Also we need to test on mobile, too.

  • Ensure it works on mobile on safari
  • Ensure all state is still loading from various events
  • Things should load in swap history
  • Check nearly everything on the site where you can submit
  • Ensure that any buttons that submit transactions are disabled while the builder is loading (if props change, it should temporarily be disabled while the builder finishes its async call)

Extra things fixed/changed during this process:

  • For anything but register market (anything that doesn't use the sign then submit flow), the transaction builder no longer makes async calls to the fullnode when building a transaction. The wallet adapter now handles it. This reduces the amount of API calls our frontend does and reduces the amount of time from click => transaction preview from ~150ms to ~5ms
  • Sequence number is now fetched on an interval/on demand, for the register market flow. This also reduces the fullnode queries and speeds it up in general, even for sign then submit flow

Checklist

  • Did you update relevant documentation?
  • Did you add tests to cover new code or a fixed issue?
  • Did you update the changelog?
  • Did you check all checkboxes from the linked Linear task?

Copy link

vercel bot commented Nov 27, 2024

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

Name Status Preview Comments Updated (UTC)
emojicoin-dot-fun ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 3, 2025 9:54pm
emojicoin-dot-fun-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 3, 2025 9:54pm

Copy link

This issue is stale because it has been open 45 days with no activity. Remove the stale label, comment or push a commit - otherwise this will be closed in 15 days.

@xbtmatt xbtmatt marked this pull request as ready for review February 1, 2025 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size-big A big PR. This will take a while to be reviewed and merged. urgency-low Can check after high/medium urgency
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants