Skip to content
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(runway): cherry-pick fix: transaction reject crash #12312

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

runway-github[bot]
Copy link
Contributor

@runway-github runway-github bot commented Nov 15, 2024

Description

Rejecting a transaction confirmation caused the app to crash.

This was due to Hermes not supporting the recursive nature of the error
stack during serialisation.

Resolution:

  • Force the use of 7.0.1 of @metamask/rpc-errors since there are no
    API breaking changes.
  • Update the pre-existing patch to target this new version.

Related issues

Fixes: #12240

Manual testing steps

See issue.

Screenshots/Recordings

Before

After

Pre-merge author checklist

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. 8fa867d

## **Description**

Rejecting a transaction confirmation caused the app to crash.

This was due to Hermes not supporting the recursive nature of the error
`stack` during serialisation.

Resolution:

- Force the use of `7.0.1` of `@metamask/rpc-errors` since there are no
API breaking changes.
- Update the pre-existing patch to target this new version.

## **Related issues**

Fixes: #12240 

## **Manual testing steps**

See issue.

## **Screenshots/Recordings**

### **Before**

### **After**

## **Pre-merge author checklist**

- [x] I’ve followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile
Coding
Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
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.
@runway-github runway-github bot requested review from a team as code owners November 15, 2024 18:15
@sethkfman sethkfman added the team-confirmations Push issues to confirmations team label Nov 15, 2024
Copy link

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher

🚮 Removed packages: npm/@metamask/[email protected]

View full report↗︎

@sethkfman sethkfman added the Run Smoke E2E Triggers smoke e2e on Bitrise label Nov 15, 2024
Copy link
Contributor

github-actions bot commented Nov 15, 2024

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: 89d2df2
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/edb6f2e4-6bde-4bf5-909d-abe0ecb10dbd

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

Tip

  • Check the documentation if you have any doubts on how to understand the failure on bitrise

Copy link

sonarcloud bot commented Nov 15, 2024

Copy link
Contributor

@sethkfman sethkfman left a comment

Choose a reason for hiding this comment

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

LGTM

@sethkfman sethkfman merged commit b173edc into release/7.35.0 Nov 15, 2024
38 of 40 checks passed
@sethkfman sethkfman deleted the runway-cherry-pick-7.35.0-1731694553 branch November 15, 2024 18:33
@github-actions github-actions bot locked and limited conversation to collaborators Nov 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Run Smoke E2E Triggers smoke e2e on Bitrise team-confirmations Push issues to confirmations team team-runway-bot
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants