We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
6.5.4
uintCV(10000000000000000000000000000000) => { type: 1, value: 9999999999999999635896294965248n }
run the above code
uintCV should encode the big number correctly
Try to renew friedger.crashpunks on https://renewbns.com/
The text was updated successfully, but these errors were encountered:
uintCV("10000000000000000000000000000000"), uintCV(10000000000000000000000000000000n), uintCV(10000000000000000000000000000000)
=>
Object { type: 1, value: 10000000000000000000000000000000n } Object { type: 1, value: 10000000000000000000000000000000n } Object { type: 1, value: 9999999999999999635896294965248n }
Sorry, something went wrong.
There should be an error because the number is larger than Number.MAX_SAFE_INTEGER
Yep, this is just the BigInt constructor not working correctly with too large numbers. example
BigInt
Will update to check bounds and throw error telling to use with string or hex construction
janniks
Successfully merging a pull request may close this issue.
What version of Stacks.js are you using?
6.5.4
Describe the bug
uintCV(10000000000000000000000000000000) => { type: 1, value: 9999999999999999635896294965248n }
How to reproduce
run the above code
Expected behavior
uintCV should encode the big number correctly
Additional context
Try to renew friedger.crashpunks on https://renewbns.com/
The text was updated successfully, but these errors were encountered: