Skip to content

Move bn.js to controller-utils dependencies #4023

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

Merged
merged 2 commits into from
Mar 6, 2024
Merged

Conversation

FrederikBolding
Copy link
Member

@FrederikBolding FrederikBolding commented Mar 6, 2024

Explanation

This PR moves bn.js to be a non-dev dependency of controller-utils as it is used directly in https://github.com/MetaMask/core/blob/main/packages/controller-utils/src/util.ts

It also adds @types/bn.js to the dependencies, mirroring the implementation from assets-controllers.

For more context see this CI failure: https://github.com/MetaMask/snaps/actions/runs/8154723823/job/22288793408?pr=2245

Changelog

@metamask/controller-utils

  • Changed: Add bn.js to dependencies

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

@FrederikBolding FrederikBolding requested a review from a team as a code owner March 6, 2024 11:14
@FrederikBolding FrederikBolding merged commit 43b5ff0 into main Mar 6, 2024
@FrederikBolding FrederikBolding deleted the fb/move-bn-to-deps branch March 6, 2024 11:41
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.

2 participants