Skip to content

fix: converts string to bigint in specific cases when parsing v2 traces#97

Merged
aorumbayev merged 2 commits intomainfrom
fix/v2-simulate-traces
Oct 24, 2025
Merged

fix: converts string to bigint in specific cases when parsing v2 traces#97
aorumbayev merged 2 commits intomainfrom
fix/v2-simulate-traces

Conversation

@aorumbayev
Copy link
Copy Markdown
Collaborator

@aorumbayev aorumbayev commented Oct 2, 2025

Fixes #98

The objectToMapRecursive function now converts string values to bigint
when the key is 'uint' and the value is a numeric string.

This is required for some numeric string values that exceed the safe
integer range when users are working with legacy simulation traces emitted from v2 of algosdk

IMPORTANT: The following PR has to be merged first then this pr needs to update the package version of avm debugger before merging algorandfoundation/algokit-avm-debugger#4

The objectToMapRecursive function now converts string values to bigint
when the key is 'uint' and the value is a numeric string.

This is required for some numeric string values that exceed the safe
integer range when users are working with legacy simulation traces emitted from v2 of algosdk
@aorumbayev aorumbayev requested a review from lempira October 2, 2025 18:53
@aorumbayev aorumbayev merged commit 38b5b46 into main Oct 24, 2025
3 checks passed
@aorumbayev aorumbayev deleted the fix/v2-simulate-traces branch October 24, 2025 08:39
@engineering-ci
Copy link
Copy Markdown

🎉 This PR is included in version 1.1.6-beta.9 🎉

The release is available on:

Your semantic-release bot 📦🚀

@engineering-ci
Copy link
Copy Markdown

🎉 This PR is included in version 1.1.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refine v2 to v3 simulation trace parser to account for edge cases when bigints are represented as strings

2 participants