-
-
Notifications
You must be signed in to change notification settings - Fork 254
deps: upgrade from ethereumjs-util #3943
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
Conversation
|
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
🚮 Removed packages: npm/@types/bn.js@5.1.1 |
|
👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎ This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. |
d16a37f to
ee3f6f3
Compare
| "@metamask/utils": "^8.3.0", | ||
| "async-mutex": "^0.2.6", | ||
| "ethereumjs-util": "^7.0.10", | ||
| "ethereumjs-wallet": "^1.0.1", |
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.
Note: Updating to @ethereumjs/wallet (and thereby a transitive dependency on ethereumjs-util) breaks Node.js 16 support, hence blocked by #3611
ee3f6f3 to
ef140be
Compare
ef140be to
12a65dd
Compare
mcmire
left a comment
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.
Just a few things I noticed, but otherwise looks good.
12a65dd to
5dc92c0
Compare
ae7e3f3 to
69a88bb
Compare
lifted from assets-controller
TODO: see if safe to stop double-trimming leading as well as trailing zeroes in getTokenSymbol and thereby replace toUtf8 with something simpler.
…ask/utils and @ethereumjs/util
…tils and @ethereumjs/util
…util, ethereum-cryptography
…/utils equivalents
…til and @metamask/utils - test(keyring-controller): Update expected error message when importing invalid key
69a88bb to
8adba4f
Compare
mcmire
left a comment
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.
LGTM!
Explanation
Legacy
ethereumjs-utilis used primarily for two things: its re-exportedbn.jsinstance and a handful of bytes/hex/string utility functions.BNdirectly frombn.jsinstead of viaethereumjs-util.ethereumjs-utillibrary functions with equivalent from@metamask/utilsif already availableadd0x/remove0xethereum-cryptographyfor crypto functions no longer available in@ethereumjs/utilTextEncoderawareness to test runtime ofcontroller-utils(needed for crypto hash function)@ethereumjs/util@^8.1.0for remainingethereumjs-utilimportsReferences
Changelog
@metamask/accounts-controllerethereumjs-utilwith@ethereumjs/utilandethereum-cryptography@metamask/assets-controllerethereumjs-utilwith@ethereumjs/utilandbn.js@metamask/controller-utilsethereumjs-utilwith@ethereumjs/util@metamask/gas-fee-controllerethereumjs-utilwithbn.js@metamask/keyring-controllerethereumjs-utilwith@ethereumjs/util@metamask/message-managerethereumjs-util@metamask/signature-controllerethereumjs-util@metamask/transaction-controllerethereumjs-utilwith@ethereumjs/utilandbn.js@metamask/user-operation-controllerethereumjs-utilwithbn.jsChecklist