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

Fix #235: Update in Maestro provider to correctly parse for large integers in response #2

Merged
merged 1 commit into from
Nov 25, 2023

Conversation

sourabhxyz
Copy link

Tokens in Cardano could be minted with amounts as large as $2^{63} - 1$ (maximum of what signed 64 bit can support) which is larger than what could be safely represented for in JS. Standard JSON parser for JS would not be making use of bigint, consequently, this PR makes use of amounts-as-strings header attribute when making request to get amounts as strings instead, to cast later as bigint.

Closes spacebudz#235.

@colll78 colll78 merged commit 03a9499 into Anastasia-Labs:main Nov 25, 2023
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.

'amounts-as-strings': 'true' for Maestro provider endpoints
2 participants