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

转账精度问题 #6

Closed
shrimpliu opened this issue Jul 19, 2018 · 1 comment
Closed

转账精度问题 #6

shrimpliu opened this issue Jul 19, 2018 · 1 comment

Comments

@shrimpliu
Copy link

shrimpliu commented Jul 19, 2018

转账方法的 asset 序列化时,把 amount 处理成整数时,没有考虑小数点后位数超过 4 的情况,导致如果传的金额是 '100.12345 EOS' 时,转成的整数变成 '10012345', 而不是 '1001234'。
问题代码在这里

@espritblock
Copy link
Owner

感谢你提交的issues,问题已经修复,请更新代码,调用前请严格校验参数

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

No branches or pull requests

2 participants