Skip to content

Commit

Permalink
Fix: balance sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed May 7, 2021
1 parent 405902e commit f8ce0e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/elastic/tokenbalance/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func (storage *Storage) GetAccountBalances(network, address, contract string, si
"type": "string",
"script": core.Item{
"lang": "painless",
"source": "doc['balance.keyword'].value.length().toString() + doc['balance.keyword'].value",
"source": "String.format('%04d', new def[] {doc['balance.keyword'].value.length()}) + doc['balance.keyword'].value",
},
"order": "desc",
},
Expand Down

0 comments on commit f8ce0e8

Please sign in to comment.