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: don't reject when signing #2666

Merged
merged 2 commits into from
Oct 20, 2023
Merged

fix: don't reject when signing #2666

merged 2 commits into from
Oct 20, 2023

Conversation

iamacook
Copy link
Member

@iamacook iamacook commented Oct 19, 2023

What it solves

Resolves successful signing requests rejecting in dApps

How this PR fixes it

The USER_QUIT event is nly dispatched to the dApp if a warning requirement was set and is accepted when closing the flow, ergo not when a signature request succeeds and closes the flow.

How to test it

Observe successful swaps on Aave, CoWSwap, Curve and Sushi (on 1/n Safes).

Checklist

  • I've tested the branch on mobile 📱
  • I've documented how it affects the analytics (if at all) 📊
  • I've written a unit/e2e test for it (if applicable) 🧑‍💻

@iamacook iamacook self-assigned this Oct 19, 2023
@github-actions
Copy link

github-actions bot commented Oct 19, 2023

Branch preview

⏳ Deploying a preview site...

@github-actions
Copy link

github-actions bot commented Oct 19, 2023

ESLint Summary View Full Report

Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.

Type Occurrences Fixable
Errors 0 0
Warnings 0 0
Ignored 0 N/A
  • Result: ✅ success
  • Annotations: 0 total

Report generated by eslint-plus-action

@github-actions
Copy link

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements
75.31% (-0% 🔻)
9340/12402
🔴 Branches
49.57% (-0.03% 🔻)
1909/3851
🔴 Functions 57.79% 1394/2412
🟡 Lines
76.93% (+0.01% 🔼)
8449/10982

Test suite run success

1043 tests passing in 141 suites.

Report generated by 🧪jest coverage report action from 30890fb

return newTxFlow
})
(newTxFlow: TxModalContextType['txFlow'], onClose?: () => void, newShouldWarn?: boolean) => {
// If flow is open user opens a different one, show confirmation dialog if required
Copy link
Member

Choose a reason for hiding this comment

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

Is there an and missing?

Copy link
Member Author

Choose a reason for hiding this comment

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

Addressed in c961fbf.

@iamacook iamacook merged commit 56bf7d8 into nect Oct 20, 2023
6 of 9 checks passed
@iamacook iamacook deleted the wc-signing-rejections branch October 20, 2023 08:55
@github-actions github-actions bot locked and limited conversation to collaborators Oct 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants