-
-
Notifications
You must be signed in to change notification settings - Fork 203
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
chore: remove eth-method-registry
package
#5203
base: main
Are you sure you want to change the base?
Conversation
1cfbf7c
to
77c9cd8
Compare
eth-method-registry
package
@metamaskbot publish-preview |
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.
See questions below. I'm curious whether it would be worth it not to mock @ethersproject/abi
in the tests?
packages/transaction-controller/src/helpers/MethodDataHelper.ts
Outdated
Show resolved
Hide resolved
Preview builds have been published. See these instructions for more information about preview builds. Expand for full list of packages and versions.
|
@metamaskbot publish-preview |
Preview builds have been published. See these instructions for more information about preview builds. Expand for full list of packages and versions.
|
I am testing the changes in this PR: MetaMask/metamask-extension#29749. You can check this commit for details: 1d1f45b. I will also try to update the test to avoid mocking |
@cryptodev-2s One more question on this PR. I get that we want to remove dependencies on |
To answer your question, there hasn’t been any discussion about the package, nor am I aware of any plans to replace it. I made the change primarily because it removed several eth* packages at once and reduced the build size by nearly 1MB. In this case, it might make more sense to update eth-method-registry ? |
@cryptodev-2s Yeah, I'm thinking that it might be better to update But I guess I can see the other way too; by moving the code here we're effectively moving the package into the monorepo, and that's kind of nice from a maintainability perspective. Curious to know what the Confirmations team thinks... |
@OGPoyraz, any thoughts on the discussion regarding this change or whether we should keep eth-method-registry? move it to core ? |
@metamaskbot publish-preview |
Preview builds have been published. See these instructions for more information about preview builds. Expand for full list of packages and versions.
|
Explanation
This PR removes the eth-method-registry package, as it relies on @metamask/ethjs-query and @metamask/ethjs-contract, which are not EIP-1193 compatible.
References
Fixes: partially completes #5121
Changelog
Checklist