-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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: Make confirmations exclusively use approval origin #12980
base: main
Are you sure you want to change the base?
fix: Make confirmations exclusively use approval origin #12980
Conversation
Bitrise❌❌❌ Commit hash: c2db4e1 Note
Tip
|
@@ -133,8 +133,7 @@ const AccountConnect = (props: AccountConnectProps) => { | |||
|
|||
const { toastRef } = useContext(ToastContext); | |||
|
|||
// origin is set to the last active tab url in the browser which can conflict with sdk | |||
const inappBrowserOrigin: string = useSelector(getActiveTabUrl, isEqual); | |||
const origin: string = approvalRequest?.requestData?.origin; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the origin
not on the approvalRequest
itself as it's part of every approval request?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Matthew, you're totally right, fixed.
Bitrise❌❌❌ Commit hash: 1cd9186 Note
Tip
|
Quality Gate passedIssues Measures |
Description
This PR aims to make connect and send flows to exclusively use approval origin.
Related issues
Fixes: https://github.com/MetaMask/mobile-planning/issues/2096
Manual testing steps
See task for repro steps
Screenshots/Recordings
Simulator.Screen.Recording.-.iPhone.13.Pro.-.2025-01-14.at.15.41.23.mp4
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist