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

Replace ethers 5.7 dependency with @metamask/utils and ethereum-cryptography #56

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Amxx
Copy link
Contributor

@Amxx Amxx commented Oct 9, 2024

Fixes #55

@@ -1,7 +1,7 @@
import type { BytesLike } from '@ethersproject/bytes';
type HexString = string;
import type { BytesLike } from '@metamask/utils';
Copy link
Contributor

@frangio frangio Oct 9, 2024

Choose a reason for hiding this comment

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

The BytesLike type in this package is stricter, it requires strings to have the 0x prefix at the type level, where the previous type was simply string. Since some of the user-facing functions of this library have BytesLike arguments, this is a breaking change.

We should keep the looser type and convert to HexString internally.

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.

Bump @ethersproject/signing-key dependency from 5.7.0 to 6.x
2 participants