Update chia/rpc/data_layer_rpc_api.py

Co-authored-by: Kyle Altendorf <sda@fstab.net>
This commit is contained in:
Florin Chirica 2022-08-01 15:45:56 +03:00 committed by GitHub
parent e162a578b6
commit 27de47c164
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,7 +103,7 @@ class DataLayerRpcApi:
if self.service is None: if self.service is None:
raise Exception("Data layer not created") raise Exception("Data layer not created")
keys = await self.service.get_keys(store_id) keys = await self.service.get_keys(store_id)
return {"keys": keys} return {"keys": [f"0x{key.hex()}" for key in keys]}
async def get_keys_values(self, request: Dict[str, Any]) -> EndpointResult: async def get_keys_values(self, request: Dict[str, Any]) -> EndpointResult:
store_id = bytes32(hexstr_to_bytes(request["id"])) store_id = bytes32(hexstr_to_bytes(request["id"]))