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

Remove BigInt and replace with JSBI #5

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

macalinao
Copy link

BigInt is not supported in all browsers.

@evan-gray
Copy link
Contributor

Would you be opposed to using bn.js instead, since this is what @solana/web3.js uses internally for PublicKey?

@macalinao
Copy link
Author

JSBI is nicer because it conforms to the BigInt standard & has some Babel plugins (eg https://github.com/GoogleChromeLabs/babel-plugin-transform-jsbi-to-bigint) to transform to BigInt.

I'm fine either way though

@ebramanti
Copy link

👍🏻 to this, a lot of our integrations at Step depend on this and users on Safari 12 are having issues with BigInt.

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.

3 participants