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

Use patch-package #1304

Merged
merged 3 commits into from
Jan 28, 2020
Merged

Use patch-package #1304

merged 3 commits into from
Jan 28, 2020

Conversation

brunobar79
Copy link
Contributor

Cleaned up the postinstall script and now use patch-package instead of sed

@brunobar79 brunobar79 changed the title Use Patch package Use patch-package Jan 28, 2020
Copy link
Contributor

@estebanmino estebanmino left a comment

Choose a reason for hiding this comment

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

👏 👏 👏

@brunobar79 brunobar79 merged commit 0215135 into develop Jan 28, 2020
@brunobar79 brunobar79 deleted the patch-package branch January 28, 2020 20:20
rickycodes pushed a commit that referenced this pull request Jan 31, 2022
* use patch package

* update lockfile
Andepande pushed a commit that referenced this pull request Oct 18, 2023
## **Description**

_Identical to #7519 but targeting the release branch due to additional
patch changes not yet being released._

Resolve a bug causing some new transactions to be stuck in the
`submitted` status as they are rejected by the network due to `nonce`
values that are too high.

This is caused by incorrect callbacks in the `NonceTracker` in the
`TransactionController`, resulting in correct `nonce` values being
skipped because a local confirmed transaction (with the same address but
a different chain ID) has the same `nonce`.

The solution is to update the callbacks used by the `NonceTracker` to
filter transactions to the current chain only.

## **Manual testing steps**

1. Create a new account.
2. Send some Goerli to the account.
3. Send some Sepolia to the account.
4. Send a transaction on Goerli using the new account.
5. Send a transaction on Sepolia using the new account.
6. Verify both are successful and both using the same nonce.

## **Related issues**

Fixes [#1304](MetaMask/mobile-planning#1304)

## **Pre-merge author checklist**

- [x] I’ve followed [MetaMask Coding
Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've clearly explained:
  - [x] What problem this PR is solving.
  - [x] How this problem was solved.
  - [x] How reviewers can test my changes.
- [x] I’ve indicated what issue this PR is linked to: Fixes #???
- [x] I’ve included tests if applicable.
- [x] I’ve documented any added code.
- [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)).
- [x] I’ve properly set the pull request status:
  - [x] In case it's not yet "ready for review", I've set it to "draft".
- [x] In case it's "ready for review", I've changed it from "draft" to
"non-draft".

## **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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants