Skip to content

Commit 1dadf04

Browse files
authored
feat: add externalLinkClicked to TransactionMetaBase type (#3828)
## Explanation This prop is used to pass a value used to be added as a transaction metametric fragment prop. ## References <!-- Are there any issues that this pull request is tied to? Are there other links that reviewers should consult to understand these changes better? For example: --> Fixes https://github.com/MetaMask/MetaMask-planning/issues/1756 Related to MetaMask/metamask-extension#22631 ## Changelog <!-- If you're making any consumer-facing changes, list those changes here as if you were updating a changelog, using the template below as a guide. (CATEGORY is one of BREAKING, ADDED, CHANGED, DEPRECATED, REMOVED, or FIXED. For security-related issues, follow the Security Advisory process.) Please take care to name the exact pieces of the API you've added or changed (e.g. types, interfaces, functions, or methods). If there are any breaking changes, make sure to offer a solution for consumers to follow once they upgrade to the changes. Finally, if you're only making changes to development scripts or tests, you may replace the template below with "None". --> ### `@metamask/transaction-controller` - **feat**: Adds `externalLinkClicked` prop to TransactionMetaBase type ## Checklist - [ ] I've updated the test suite for new or updated code as appropriate - [ ] I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate - [ ] I've highlighted breaking changes using the "BREAKING" category above as appropriate
1 parent df6e4e5 commit 1dadf04

File tree

1 file changed

+5
-0
lines changed
  • packages/transaction-controller/src

1 file changed

+5
-0
lines changed

packages/transaction-controller/src/types.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,11 @@ type TransactionMetaBase = {
163163
*/
164164
estimateUsed?: string;
165165

166+
/**
167+
* Description of the link clicked associated with the transaction
168+
*/
169+
externalLinkClicked?: string;
170+
166171
/**
167172
* The chosen amount which will be the same as the originally proposed token
168173
* amount if the user does not edit the amount or will be a custom token

0 commit comments

Comments
 (0)