Skip to content

Commit

Permalink
chore: cherry-pick #10961 to new controller version (#11015)
Browse files Browse the repository at this point in the history
## **Description**

cherry-pick #10961 to new controller version

## **Related issues**

Fixes:

## **Manual testing steps**

1. Go to this page...
2.
3.

## **Screenshots/Recordings**

<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->

### **Before**

<!-- [screenshots/recordings] -->

### **After**

<!-- [screenshots/recordings] -->

## **Pre-merge author checklist**

- [ ] I’ve followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile
Coding
Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [ ] I've completed the PR template to the best of my ability
- [ ] I’ve included tests if applicable
- [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [ ] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [ ] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [ ] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.

Co-authored-by: metamaskbot <metamaskbot@users.noreply.github.com>
  • Loading branch information
sethkfman and metamaskbot authored Sep 4, 2024
1 parent dbdca6f commit 0982b16
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions patches/@metamask+swaps-controller+9.0.12.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
diff --git a/node_modules/@metamask/swaps-controller/dist/constants.js b/node_modules/@metamask/swaps-controller/dist/constants.js
index 4c98522..523f25a 100644
--- a/node_modules/@metamask/swaps-controller/dist/constants.js
+++ b/node_modules/@metamask/swaps-controller/dist/constants.js
@@ -129,8 +129,8 @@ exports.BSC_SWAPS_TOKEN_OBJECT = {
decimals: 18,
};
exports.POLYGON_SWAPS_TOKEN_OBJECT = {
- symbol: 'MATIC',
- name: 'Matic',
+ symbol: 'POL',
+ name: 'Polygon',
address: exports.NATIVE_SWAPS_TOKEN_ADDRESS,
decimals: 18,
};

0 comments on commit 0982b16

Please sign in to comment.