mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-11-11 01:28:17 +03:00
Update chia/rpc/data_layer_rpc_api.py
Co-authored-by: Kyle Altendorf <sda@fstab.net>
This commit is contained in:
parent
e162a578b6
commit
27de47c164
@ -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"]))
|
||||||
|
Loading…
Reference in New Issue
Block a user