Skip to content

Conversation

legobeat
Copy link
Contributor

@legobeat legobeat commented Oct 22, 2024

Explanation

The API for this part is equivalent between the two libraries. Allowing both eases migrations.

References

Related

Changelog

@metamask/controller-utils

  • ADDED: Types indicate bignumber.js instances are valid input to BNToHex.

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've highlighted breaking changes using the "BREAKING" category above as appropriate
  • I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes

Copy link

socket-security bot commented Oct 22, 2024

No dependency changes detected. Learn more about Socket for GitHub ↗︎

👍 No dependency changes detected in pull request

@legobeat legobeat force-pushed the bignumbertohex branch 3 times, most recently from 2545fe4 to 9826643 Compare October 22, 2024 00:48
@legobeat legobeat marked this pull request as ready for review October 22, 2024 00:48
@legobeat legobeat requested a review from a team as a code owner October 22, 2024 00:48
@legobeat legobeat requested a review from a team October 22, 2024 00:48
@legobeat legobeat added the team-wallet-framework Deprecated: Please use `team-core-platform` instead. label Oct 22, 2024
@legobeat legobeat force-pushed the bignumbertohex branch 4 times, most recently from fd704e0 to 7f8c90f Compare October 22, 2024 01:29
@legobeat legobeat requested a review from a team October 22, 2024 01:31
@legobeat legobeat merged commit ce8af03 into MetaMask:main Oct 23, 2024
119 checks passed
@legobeat legobeat deleted the bignumbertohex branch October 23, 2024 09:19
"devDependencies": {
"@metamask/auto-changelog": "^3.4.4",
"@types/jest": "^27.4.1",
"bignumber.js": "^4.1.0",
Copy link
Contributor

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.

Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team-security team-wallet-framework Deprecated: Please use `team-core-platform` instead.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants