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

[web3.js] Eliminate dependency on bn.js #1101

Closed
Tracked by #1103
steveluscher opened this issue Aug 29, 2022 · 2 comments
Closed
Tracked by #1103

[web3.js] Eliminate dependency on bn.js #1101

steveluscher opened this issue Aug 29, 2022 · 2 comments
Labels

Comments

@steveluscher
Copy link
Collaborator

Problem

bn.js represents about 13% of the total size (35K) of the web3.js bundle. It serves a purpose that's now well-handled by JavaScript's native BigInt – an API supported by most major browsers since Sep 2020.

Proposed Solution

  • Eliminate dependency on bn.js, replacing it with BigInt
@steveluscher
Copy link
Collaborator Author

This will require that we either replace borsh or ask them to release a new version that only supports bigint: near/borsh-js#60

@steveluscher steveluscher transferred this issue from solana-labs/solana Feb 1, 2023
@github-actions github-actions bot added the stale label Feb 2, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 12, 2024
Copy link
Contributor

Because there has been no activity on this issue for 7 days since it was closed, it has been automatically locked. Please open a new issue if it requires a follow up.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant