return decimal values instead of hex values for json-rpc transfer results
This commit is contained in:
parent
d4989bacd4
commit
cd00e19992
1 changed files with 2 additions and 2 deletions
|
@ -162,13 +162,13 @@ fn compute_transfer(
|
||||||
&(jsonrpc_result(
|
&(jsonrpc_result(
|
||||||
request.id.clone(),
|
request.id.clone(),
|
||||||
json::object! {
|
json::object! {
|
||||||
flow: flow.to_string(),
|
flow: flow.to_decimal(),
|
||||||
final: max_distance.is_none(),
|
final: max_distance.is_none(),
|
||||||
transfers: transfers.into_iter().map(|e| json::object! {
|
transfers: transfers.into_iter().map(|e| json::object! {
|
||||||
from: e.from.to_checksummed_hex(),
|
from: e.from.to_checksummed_hex(),
|
||||||
to: e.to.to_checksummed_hex(),
|
to: e.to.to_checksummed_hex(),
|
||||||
token_owner: e.token.to_checksummed_hex(),
|
token_owner: e.token.to_checksummed_hex(),
|
||||||
value: e.capacity.to_string()
|
value: e.capacity.to_decimal(),
|
||||||
}).collect::<Vec<_>>(),
|
}).collect::<Vec<_>>(),
|
||||||
},
|
},
|
||||||
) + "\r\n"),
|
) + "\r\n"),
|
||||||
|
|
Loading…
Reference in a new issue