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

deps: ethereumjs-util 7 #11930

Conversation

legobeat
Copy link
Contributor

@legobeat legobeat commented Oct 21, 2024

Description

Bump deprecated dependencies to (still deprecated but) lated versions with various fixes and improvements:

  • fix: unpin and update ethereumjs-util from 6.1.0 to ^7.1.5
  • fix: update ethereumjs-abi from 0.6.6 to ^0.6.8
    • Replace previous github resolution with version published on npm registry

Related issues

Manual testing steps

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.

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.

Copy link

socket-security bot commented Oct 21, 2024

Removed dependencies detected. Learn more about Socket for GitHub ↗︎

🚮 Removed packages: npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected]

View full report↗︎

@legobeat legobeat added the Run Smoke E2E Triggers smoke e2e on Bitrise label Oct 21, 2024
@legobeat legobeat mentioned this pull request Oct 21, 2024
7 tasks
@legobeat legobeat marked this pull request as ready for review October 21, 2024 23:32
@legobeat legobeat requested review from a team as code owners October 21, 2024 23:32
@@ -466,7 +465,7 @@ export default async function migrate(stateAsync: unknown) {
if (Array.isArray(transactionControllerState.transactions)) {
transactionControllerState.transactions.forEach(
(transaction: TransactionParams, index: number) => {
if (transaction && !isHexString(transaction.chainId)) {
if (transaction && !transaction.chainId || (transaction.chainId && !isHexString(transaction.chainId))) {
Copy link
Contributor Author

@legobeat legobeat Oct 21, 2024

Choose a reason for hiding this comment

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

This does not change the resulting logic and is just validating transaction.chainId to account for that isHexString does not accept arbitrary input.

I am not sure if it is correct and intended that this should evaluate to true when transaction.chainId is undefined (or otherwise not sane to pass to toHex), or if explicit handling for that should actually be added.

@legobeat legobeat closed this Oct 21, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Oct 21, 2024
@legobeat
Copy link
Contributor Author

Superseded by #11932

@legobeat legobeat deleted the deps-ethereumjs-utils-7 branch October 21, 2024 23:57
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-security
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant