convert decoded big numbers to strings in api response #193
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

TL;DR
Added support for converting big numbers to strings in decoded transaction and log data.
What changed?
ConvertBigNumbersToStringthat recursively converts*big.Intandbig.Intvalues to stringsSerializemethod forDecodedLogto convert big numbers to strings in both indexed and non-indexed parametersSerializemethod forDecodedTransactionto convert big numbers to strings in decoded inputsStripPayloadfunction and related helper functionsHow to test?
Serializemethod on the decoded transaction or logWhy make this change?
Big numbers in decoded transaction and log data need to be converted to strings to ensure they can be properly serialized to JSON without precision loss. This is especially important for large numbers that exceed the range of standard JSON number types.