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

Feature/upgrade ethereumjs util #466

Merged
merged 19 commits into from
May 27, 2021
Merged

Conversation

rickycodes
Copy link
Member

@rickycodes rickycodes commented May 14, 2021

Upgrade ethereumjs-util to latest

Most of the changes are related to the fact that the addresses we used previously are now considered invalid (they were always invalid, but ethUtil now throws in cases where they are).

@rickycodes rickycodes requested a review from a team as a code owner May 14, 2021 15:05
@brad-decker
Copy link
Contributor

https://github.com/MetaMask/controllers/blob/f421f1ed1b5e70a4a2a224569e49f77e8bc0b53a/src/util.ts#L284 this line would previously return false for input such as '0000000000000000000000000000000000000000' (non prefixed hex string) and now will throw an error. I highly, highly, highly recommend not using this method directly and instead use a helper method that does something like this one:

https://github.com/MetaMask/metamask-extension/pull/11089/files#diff-f6b120c1869bc7363902d972ebbc6b34fef85122aa58b606f5fdddec01dfb049R14-R31

which I created to get around the numerous breaking changes this introduced and going on our third hotfix for 9.5.3

@rickycodes rickycodes force-pushed the feature/upgrade-ethereumjs-util branch from d2f5f85 to b6643c0 Compare May 14, 2021 17:20
@rickycodes rickycodes marked this pull request as draft May 16, 2021 00:16
@rickycodes rickycodes marked this pull request as ready for review May 19, 2021 17:24
@rickycodes rickycodes force-pushed the feature/upgrade-ethereumjs-util branch 2 times, most recently from c7edfba to 481a9d7 Compare May 25, 2021 14:58
src/keyring/KeyringController.ts Outdated Show resolved Hide resolved
src/user/AddressBookController.ts Show resolved Hide resolved
@rickycodes rickycodes force-pushed the feature/upgrade-ethereumjs-util branch from 0894768 to c8136ee Compare May 26, 2021 15:32
brad-decker
brad-decker previously approved these changes May 26, 2021
Copy link
Contributor

@brad-decker brad-decker left a comment

Choose a reason for hiding this comment

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

LGTM!

…e/upgrade-ethereumjs-util

* 'develop' of github.com:MetaMask/controllers:
  v10.0.0 (#477)
Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

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

LGTM!

@rickycodes rickycodes merged commit 82386c4 into develop May 27, 2021
@rickycodes rickycodes deleted the feature/upgrade-ethereumjs-util branch May 27, 2021 14:13
@estebanmino estebanmino mentioned this pull request Jun 7, 2021
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
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.

3 participants