-
Notifications
You must be signed in to change notification settings - Fork 5.4k
fix: sei and mon native token swap selection #38349
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
Changes from all commits
cdb171d
d7a93f7
47b5675
0d41039
f69e4db
3e3fbff
846d2a1
7e97b5e
9625185
f04cda3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| diff --git a/dist/types.cjs b/dist/types.cjs | ||
| index a83a797b8f01747a6d51eb1219669c729955f039..ea9eb54bf3a0ae7ed3c75a8bb9904dd925a50a16 100644 | ||
| --- a/dist/types.cjs | ||
| +++ b/dist/types.cjs | ||
| @@ -47,6 +47,8 @@ var ChainId; | ||
| ChainId[ChainId["SOLANA"] = 1151111081099710] = "SOLANA"; | ||
| ChainId[ChainId["BTC"] = 20000000000001] = "BTC"; | ||
| ChainId[ChainId["TRON"] = 728126428] = "TRON"; | ||
| + ChainId[ChainId["SEI"] = 1329] = "SEI"; | ||
| + ChainId[ChainId["MONAD"] = 143] = "MONAD"; | ||
| })(ChainId || (exports.ChainId = ChainId = {})); | ||
| var RequestStatus; | ||
| (function (RequestStatus) { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: Patch may be incomplete, missing ESM file modificationThe patch only modifies There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: Patch missing ESM file causing inconsistent ChainId enumThe patch only modifies |
||
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.
Bug: Patch missing ESM version of ChainId enum
The patch only modifies
dist/types.cjs(CommonJS) but likely needs to also patchdist/types.mjs(ES Modules). Other patches in this repository (e.g.,@metamask-assets-controllers) patch both.cjsand.mjsfiles because MetaMask controller packages export both formats. If the build system resolves the ESM version, theSEIandMONADchain IDs won't be present in theChainIdenum, and the fix for the swap field defaulting issue may not work consistently.