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

aelf-command - numeric string was forcibly converted into scientific notation #88

Closed
1 task done
AbigailDeng opened this issue Aug 13, 2024 · 0 comments · Fixed by #89
Closed
1 task done

aelf-command - numeric string was forcibly converted into scientific notation #88

AbigailDeng opened this issue Aug 13, 2024 · 0 comments · Fixed by #89
Assignees
Labels
bug Something isn't working

Comments

@AbigailDeng
Copy link
Collaborator

AbigailDeng commented Aug 13, 2024

Expected Behavior:

When initiating a transaction with a purely numeric string using aelf-command, the input should remain as a numeric string without being converted to scientific notation. This behavior should be consistent across different methods of initiating transactions, including both aelf-command and aelf client.

Specifications:

Input: A numeric string (e.g., "12345678901234567890")
Issue: When using aelf-command to initiate a transaction, the numeric string is automatically converted to scientific notation (e.g., "1.2345678901234567e+19").
Expected Result: The numeric string should be passed as-is, without conversion to scientific notation.
Comparison: Initiating the same transaction via aelf client handles the numeric string correctly without conversion.

Image

Tasks

  • fix parseJSON
@AbigailDeng AbigailDeng self-assigned this Aug 13, 2024
@AbigailDeng AbigailDeng added enhancement New feature or request bug Something isn't working and removed enhancement New feature or request labels Aug 13, 2024
@AbigailDeng AbigailDeng linked a pull request Aug 14, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant