Fix create_and_insert_block RPC method returning the ID instead of the block json structure

This commit is contained in:
Kevin F 2023-01-23 17:53:59 -06:00
parent 0236fc83f4
commit f410f033c0

View File

@ -62,7 +62,7 @@ def create_block(
def create_and_insert_block(
block_data: 'base64',
block_type: str, ttl: int, metadata: dict) -> str:
bl = _do_create_block(block_data, block_type, ttl, metadata)['id']
bl = _do_create_block(block_data, block_type, ttl, metadata)
insert_block(bl)
return bl