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 #236

Closed
wants to merge 1 commit into from
Closed

Conversation

sourabhxyz
Copy link
Contributor

@sourabhxyz sourabhxyz commented Nov 16, 2023

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 #235.

@sourabhxyz sourabhxyz changed the title Fix #235: Update in Maestro provider to allow for correctly parsing 6… Fix #235: Update in Maestro provider to correctly parse for large integers in response Nov 16, 2023
@sourabhxyz sourabhxyz closed this by deleting the head repository 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
1 participant