Skip to content

Commit

Permalink
sort did result
Browse files Browse the repository at this point in the history
  • Loading branch information
lxffff1990 committed Jul 16, 2018
1 parent 8b006ae commit 9aa8a0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/lib/explorer/extensions/commands/getdid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ console_result getdid::invoke (Json::Value& jv_output,

auto sh_vec = blockchain.get_registered_dids();

std::sort(sh_vec->begin(), sh_vec->end());
// add blockchain dids
for (auto& elem : *sh_vec) {
json_value.append(elem.get_symbol());
Expand Down
3 changes: 2 additions & 1 deletion test/test-rpc-v3/utils/mvs_rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,8 @@ def ban_node(peer):

@mvs_api
def register_mit(account, password, to_did, symbol=None, content=None, mits=None, fee=None):

if None == content:
content = ""
'''
account Account name required.
password Account password(authorization) required.
Expand Down

0 comments on commit 9aa8a0f

Please sign in to comment.