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: block/warn about bridges accordingly #2652

Merged
merged 2 commits into from
Oct 18, 2023
Merged

Conversation

iamacook
Copy link
Member

What it solves

Resolves blocks/warns of risky bridge use

How this PR fixes it

The usage of certain bridges are either blocked or warned about, requiring user acceptance according to our research.

How to test it

Open one of the bridges specified and observe either a blocked connection window, or a warning that needs to first be accepted.

Screenshots

image

image

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 18, 2023
@github-actions
Copy link

github-actions bot commented Oct 18, 2023

Branch preview

✅ Deploy successful!

https://wc_bridge_warnings--walletweb.review-wallet-web.5afe.dev

@github-actions
Copy link

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

@@ -0,0 +1,43 @@
const DangerousBridges = [
Copy link
Member

@katspaugh katspaugh Oct 18, 2023

Choose a reason for hiding this comment

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

Naming-wise, there's nothing dangerous/risky about these bridges per se, it's just that they aren't smart contract account-friendly. Please find more specific, non-sensationalistic, names for the two arrays. And please move these lists (not the two functions below) to src/components/walletconnect/constants.ts.

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 398638f.

Copy link
Member

@katspaugh katspaugh 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 apart from my comment 👍

@iamacook iamacook merged commit 6e45ac2 into nect Oct 18, 2023
2 checks passed
@iamacook iamacook deleted the wc-bridge-warnings branch October 18, 2023 16:55
@github-actions github-actions bot locked and limited conversation to collaborators Oct 18, 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