Conversation
|
Removed dependencies detected. Learn more about Socket for GitHub ↗︎ 🚮 Removed packages: npm/json-rpc-engine@6.1.0 |
|
@metamaskbot update-policies |
|
Policies updated |
MajorLift
left a comment
There was a problem hiding this comment.
Looks good overall! Just pointing out a few instances where unknown is passed into JsonRpcRequest's Params generic argument.
This is no longer possible because Params is now constrained by JsonRpcParams. We can fix this simply by omitting Params since its default value is also JsonRpcParams.
app/scripts/lib/rpc-method-middleware/handlers/log-web3-shim-usage.js
Outdated
Show resolved
Hide resolved
app/scripts/lib/rpc-method-middleware/handlers/request-accounts.js
Outdated
Show resolved
Hide resolved
app/scripts/lib/rpc-method-middleware/handlers/send-metadata.js
Outdated
Show resolved
Hide resolved
app/scripts/lib/rpc-method-middleware/handlers/institutional/mmi-open-add-hardware-wallet.js
Outdated
Show resolved
Hide resolved
…mi-open-add-hardware-wallet.js Co-authored-by: Jongsun Suh <jongsun.suh@icloud.com>
|
For some reason a unit test is showing a snapshot change in CI but not locally. @NiranjanaBinoy and/or @MajorLift could you pull this locally and run tests to see if you can reproduce the snapshot change? |
|
@brad-decker All jest tests are passing on local for me. Not seeing the snapshot change. :( |
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
|
@metamaskbot update-policies |
|
Policies updated |
|
This PR has been automatically marked as stale because it has not had recent activity in the last 60 days. It will be closed in 14 days. Thank you for your contributions. |
Description
Updates our usage of json-rpc-engine to use
@metamask/json-rpc-engineand changes one usage to use the .destroy method instead of looping through the now private _middleware array.Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist