fix insufficient networkfee in RpcClient#496
fix insufficient networkfee in RpcClient#496bettybao1209 wants to merge 4 commits intoneo-project:masterfrom
Conversation
|
I think use floating-point numbers in JSON is not safe. Especially in the case of expressing prices. |
If not, it may be knida confusing for users when invoking |
|
We should uniformly use |
But currently we use float value for json output like json["gasconsumed"]. |
I think we should use |
|
So should we uniform both the user input and the JSON output in |
|
For JSON, I think we should use |
The asset amount(fees and NEP-17 tokens) is now in "sysfee": "0.0900799",
"netfee": "0.0124845",
"amount": "30000046.99999955",
"balance": "30000016.38985890"neo-cli command: RpcServer: |
They really are, we had problems with rounding errors.
But we can wrap them into strings, returning I mean |
|
Wrapping |
|
move to #505 |
The decimal of network fee in RpcClient and RpcServer is different, resulting in
insuffient fundsexception.