fix claim_list

This commit is contained in:
Victor Shyba 2018-10-17 11:30:24 -03:00 committed by Lex Berezhny
parent 101a3f2b22
commit 2bb4052193

View file

@ -2489,8 +2489,7 @@ class Daemon(AuthJSONRPCServer):
)
@requires(WALLET_COMPONENT)
@defer.inlineCallbacks
def jsonrpc_claim_list(self, name):
async def jsonrpc_claim_list(self, name):
"""
List current claims and information about them for a given name
@ -2522,7 +2521,7 @@ class Daemon(AuthJSONRPCServer):
'last_takeover_height': (int) the height of last takeover for the name
}
"""
claims = yield self.wallet_manager.get_claims_for_name(name) # type: dict
claims = await self.wallet_manager.get_claims_for_name(name) # type: dict
sort_claim_results(claims['claims'])
return claims