-
-
Notifications
You must be signed in to change notification settings - Fork 250
feat(controller-utils): support BigNumber as input to BNToHex #4827
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
Conversation
No dependency changes detected. Learn more about Socket for GitHub ↗︎ 👍 No dependency changes detected in pull request |
2545fe4
to
9826643
Compare
fd704e0
to
7f8c90f
Compare
9312c2a
to
15d7a43
Compare
"devDependencies": { | ||
"@metamask/auto-changelog": "^3.4.4", | ||
"@types/jest": "^27.4.1", | ||
"bignumber.js": "^4.1.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@legobeat Should this have been added to dependencies
instead of devDependencies
? It seems like it's being used in a public file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that bignumber.js
is only used to pull the BigNumber
type, because bn.js
is used for the actual runtime conversion implementation
Explanation
The API for this part is equivalent between the two libraries. Allowing both eases migrations.
References
Related
Changelog
@metamask/controller-utils
bignumber.js
instances are valid input toBNToHex
.Checklist