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

Fix import of isEIP1559Transaction #5475

Merged
merged 1 commit into from
Jan 11, 2023
Merged

Fix import of isEIP1559Transaction #5475

merged 1 commit into from
Jan 11, 2023

Conversation

Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Jan 11, 2023

Development & PR Process

  1. Follow MetaMask Mobile Coding Standards
  2. Add release-xx label to identify the PR slated for a upcoming release (will be used in release discussion)
  3. Add needs-dev-review label when work is completed
  4. Add needs-qa label when dev review is completed
  5. Add QA Passed label when QA has signed off

Description

The import of isEIP1559Transaction was not working; that function was accidentally removed from the package exports in a recent update. It has been updated to import directly from the util files in the package instead.

This is a temporary solution. We will also update the @metamask/transaction-controller package to export this method, so we don't need to reference a file internal to the package. This is being fixed like this for now so that we don't have to wait for the package update, because the next package update will be a lot of work.

Checklist

  • There is a related GitHub issue
  • Tests are included if applicable
  • Any added code is fully documented

The import of `isEIP1559Transaction` was not working; that function was
accidentally removed from the package exports in a recent update. It
has been updated to import directly from the util files in the package
instead.

This is a temporary solution. We will also update the
`@metamask/transaction-controller` package to export this method, so we
don't need to reference a file internal to the package. This is being
fixed like this for now so that we don't have to wait for the package
update, because the next package update will be a lot of work.
@Gudahtt
Copy link
Member Author

Gudahtt commented Jan 11, 2023

This function is exported in this PR: MetaMask/core#1058

@Gudahtt Gudahtt added the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Jan 11, 2023
@Gudahtt Gudahtt marked this pull request as ready for review January 11, 2023 14:50
@Gudahtt Gudahtt requested a review from a team as a code owner January 11, 2023 14:50
Copy link
Member

@wachunei wachunei left a comment

Choose a reason for hiding this comment

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

LGTM

@wachunei wachunei added No QA Needed/E2E Only Apply this label when your PR does not need any QA effort. needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) and removed needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) labels Jan 11, 2023
@Gudahtt Gudahtt merged commit 025daaf into main Jan 11, 2023
@Gudahtt Gudahtt deleted the fix-is-eip-1559-import branch January 11, 2023 15:18
@github-actions github-actions bot locked and limited conversation to collaborators Jan 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
No QA Needed/E2E Only Apply this label when your PR does not need any QA effort.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants