fix: Fix reported dapp url for MMC Connection Request Completed event#30817
Conversation
| () => Boolean(sdkV2Connection?.isV2), | ||
| [sdkV2Connection?.isV2], |
There was a problem hiding this comment.
lol. Why does sdkV2Connection ( the object returned from useSDKV2Connection) need an isV2 property?
adonesky1
left a comment
There was a problem hiding this comment.
LGTM other than test rename and audit failure
Co-authored-by: Alex Donesky <adonesky@gmail.com>
…vent-referrer-value
…vent-referrer-value
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 4aa0843. Configure here.
…vent-referrer-value
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
Why these tags:
The change is low risk since it only affects analytics tracking (the Performance Test Selection: |
ccharly
left a comment
There was a problem hiding this comment.
LGTM (not really sure to have the full context, but the code logic looks ok)

Description
Fixes bug where the channel ID was being used in place of the self reported dapp url for the Connection Request Completed event for the MMC flow
Changelog
CHANGELOG entry: null
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/WAPI-1459
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist
Note
Low Risk
Narrow analytics property fix on the connect flow with added unit tests; no permission or connection logic changes.
Overview
Fixes CONNECT_REQUEST_COMPLETED analytics on the multichain connect screen so
referreruses the dapp’s self-reported URL for SDK v2 (MMConnect) connections, matching SDK v1 and WalletConnect behavior instead of the channel UUID.The
referrerbranch now treatsisOriginMMSDKV2RemoteConnlike legacy SDK remote connections (referrer = dappUrl, or empty when no URL). New tests cover SDK v2, SDK v1, WalletConnect, and plain hostname origins.Reviewed by Cursor Bugbot for commit 43479ad. Bugbot is set up for automated code reviews on this repo. Configure here.