Skip to content

fix(deps): eth-rpc-errors@^4.0.3 -> @metamask/rpc-errors@^6.2.1#9273

Merged
legobeat merged 1 commit intomainfrom
deps-eth-rpc-errors
Apr 18, 2024
Merged

fix(deps): eth-rpc-errors@^4.0.3 -> @metamask/rpc-errors@^6.2.1#9273
legobeat merged 1 commit intomainfrom
deps-eth-rpc-errors

Conversation

@legobeat
Copy link
Contributor

Description

Replace deprecated eth-rpc-errors with @metamask/rpc-errors.

#9253 (comment)

Related issues

Manual testing steps

Screenshots/Recordings

Before

After

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • 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 format if applicable
  • I’ve applied the right labels on the PR (see labeling guidelines). 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.

@github-actions
Copy link
Contributor

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.

@legobeat legobeat requested review from Mrtenz, leotm and naugtur April 17, 2024 03:56
@legobeat legobeat added dependencies Pull requests that update a dependency file team-application-security Application security team labels Apr 17, 2024
@legobeat legobeat marked this pull request as ready for review April 17, 2024 03:56
@legobeat legobeat requested a review from a team as a code owner April 17, 2024 03:56
@legobeat legobeat requested a review from a team April 17, 2024 03:56
@legobeat legobeat requested a review from a team as a code owner April 17, 2024 03:56
Copy link
Contributor

@leotm leotm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no more import { ethErrors } from 'eth-rpc-errors' in codebase ✅

do we need to update/test our controller patches @tommasini?

Screenshot 2024-04-17 at 2 15 44 PM Screenshot 2024-04-17 at 2 17 09 PM

or can they be left alone

@leotm leotm requested a review from tommasini April 17, 2024 13:20
@legobeat
Copy link
Contributor Author

do we need to update/test our controller patches

@metamask/[email protected] supplies its own eth-rpc-errors instance.

I guess this should get resolved by updating the dependency on @metamask/transaction-controller to at least 13.0.0 (2023-09), where it also migrates to @metamask/rpc-errors.

@legobeat legobeat requested a review from leotm April 18, 2024 03:00
@legobeat legobeat force-pushed the deps-eth-rpc-errors branch from 598763e to af9d846 Compare April 18, 2024 08:50
@github-actions
Copy link
Contributor

github-actions bot commented Apr 18, 2024

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: af9d846
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/b53d807b-470f-4054-a6dd-ec000af171fa

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

@legobeat legobeat requested a review from a team April 18, 2024 09:04
@legobeat legobeat force-pushed the deps-eth-rpc-errors branch from af9d846 to 3a92d8f Compare April 18, 2024 11:51
@sonarqubecloud
Copy link

Copy link
Contributor

@tommasini tommasini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Each controller uses it's version of rpc errors, so I believe this will not impact the controllers, and that will be taken care of when each controller it's updated!

@github-actions
Copy link
Contributor

github-actions bot commented Apr 18, 2024

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: 3a92d8f
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/c255d672-a55c-495d-872b-9878b1bb02ba

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

@tommasini
Copy link
Contributor

Before merge please let's wait for the E2E to finish!

@legobeat legobeat merged commit 641fa96 into main Apr 18, 2024
@legobeat legobeat deleted the deps-eth-rpc-errors branch April 18, 2024 20:07
@github-actions github-actions bot locked and limited conversation to collaborators Apr 18, 2024
@metamaskbot metamaskbot added the release-7.22.0 Issue or pull request that will be included in release 7.22.0 label Apr 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

dependencies Pull requests that update a dependency file release-7.22.0 Issue or pull request that will be included in release 7.22.0 team-application-security Application security team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants