Fix create_and_insert_block RPC method returning the ID instead of the block json structure
This commit is contained in:
parent
0236fc83f4
commit
f410f033c0
@ -62,7 +62,7 @@ def create_block(
|
|||||||
def create_and_insert_block(
|
def create_and_insert_block(
|
||||||
block_data: 'base64',
|
block_data: 'base64',
|
||||||
block_type: str, ttl: int, metadata: dict) -> str:
|
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)
|
insert_block(bl)
|
||||||
return bl
|
return bl
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user