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

Disable suggestAutoExecute and autoClickIfNeverClicked #150

Merged
merged 2 commits into from
Jul 15, 2024
Merged

Conversation

ryanberckmans
Copy link
Member

@ryanberckmans ryanberckmans commented Jul 15, 2024

suggestAutoExecute and autoClickIfNeverClicked are two transactions
features that help ensure the user only has to click the button once,
regardless of any needed EIP-712 signatures or network additions or
switches.

These features offer a delightful UX where almost all users only have to
click the button once.

However, these features have a critical bug since the recent upgrade to
wagmi v2 where unexpected ExecuteTokenTransfer renders can cause
execute() to be called twice in a row, leading to the user being
prompted to sign duplicate payment transactions (and duplicate payment
if they sign both).

This disables suggestAutoExecute and autoClickIfNeverClicked until they
can be rebuilt safely.

suggestAutoExecute and autoClickIfNeverClicked are two transactions
features that help ensure the user only has to click the button once,
regardless of any needed EIP-712 signatures or network additions or
switches.

These features offer a delightful UX where almost all users only have to
click the button once.

However, these features have a critical bug since the recent upgrade to
wagmi v2 where unexpected ExecuteTokenTransfer renders can cause
execute() to be called twice in a row, leading to the user being
prompted to sign duplicate payment transactions (and duplicate payment
if they sign both).

This disables suggestAutoExecute and autoClickIfNeverClicked until they
can be rebuilt safely.
@ryanberckmans ryanberckmans merged commit 2e131d1 into main Jul 15, 2024
2 checks passed
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.

1 participant