-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat: add warning for invalid precision in BN
format method
#3586
base: master
Are you sure you want to change the base?
Conversation
Added a warning when precision is less than minPrecision in the BN.format method. This maintains backward compatibility while alerting users to potential issues. The warning suggests setting precision >= minPrecision for correct behavior. Resolves TODO in packages/math/src/bn.ts
Thanks for the contribution! Before we can merge this, we need @VolodymyrBg to sign the Fuel Labs Contributor License Agreement. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@VolodymyrBg is attempting to deploy a commit to the Fuel Labs Team on Vercel. A member of the Team first needs to authorize it. |
Hey @VolodymyrBg 👋🏼 Could you add some tests around this behaviour? This PR also requires a changeset, run the following command and select the affected packages. pnpm changeset add |
@petertonysmith94 Done |
BN
format method
Co-authored-by: Daniel Bate <[email protected]>
@danielbate Done |
Added a warning when precision is less than minPrecision in the BN.format method. This maintains backward compatibility while alerting users to potential issues. The warning suggests setting precision >= minPrecision for correct behavior.
Resolves TODO in packages/math/src/bn.ts
Checklist