-
Notifications
You must be signed in to change notification settings - Fork 5
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
28 standarize decimal responses #42
28 standarize decimal responses #42
Conversation
ea229d2
to
7e5486c
Compare
It would be nice if you could put a PR to reflect these changes also in the client side package. Package: https://github.com/swapper-org/swapper-core/tree/develop/packages/swapper-nodechain-client |
Perfect, i could do that tomorrow |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, review comments. Thanks for your contribution 💪🏽
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution.
Description
To standardize all responses that return a decimal number it is proposed to return all such responses in JSON number type.
Due to the poor implementation of the standard number type in languages like Javascript it may cause some problems in the future to return data as Number instead of String.
BTC
BCH
ETH
Fixes #28 (issue)
Dependencies (if any)
Type of change
How Has This Been Tested?
Test has been passed for ETH and BTC:
Syncing method tested separately
Test Configuration:
cat /etc/os-release
):uname -sr
): Linux 4.15.0-143-genericuname -m
): x86_64Related PR or Docs PR
Docs PR related #
Other PR related swapper-org/swapper-core#25
Good practices to consider