-
Notifications
You must be signed in to change notification settings - Fork 457
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: WalletConnect - track only tx and signature requests (#2732)
* Fix: WalletConnect - track only tx and signature requests * Rm href=# from address book upload
- Loading branch information
Showing
4 changed files
with
25 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { trackEvent } from '../analytics' | ||
import { WALLETCONNECT_EVENTS } from '../analytics/events/walletconnect' | ||
|
||
const trackedRequests = [ | ||
'personal_sign', | ||
'eth_sign', | ||
'eth_signTypedData', | ||
'eth_signTypedData_v4', | ||
'eth_sendTransaction', | ||
] | ||
|
||
export const trackRequest = (peerUrl: string, method: string) => { | ||
if (trackedRequests.includes(method)) { | ||
trackEvent({ ...WALLETCONNECT_EVENTS.REQUEST, label: peerUrl }) | ||
} | ||
} |
054b53b
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.
Coverage report
Test suite run success
1046 tests passing in 143 suites.
Report generated by 🧪jest coverage report action from 054b53b