Fix return type

Co-authored-by: Danny Ryan <dannyjryan@gmail.com>
This commit is contained in:
Hsiao-Wei Wang 2020-06-23 10:50:41 +08:00 committed by GitHub
parent eec1442417
commit db5da9dc97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ def verify_shard_block_signature(beacon_state: BeaconState,
def shard_state_transition(shard_state: ShardState,
block: ShardBlock,
validate_message: bool = True,
beacon_parent_state: Optional[BeaconState] = None) -> bool:
beacon_parent_state: Optional[BeaconState] = None) -> ShardState:
if validate_message:
assert beacon_parent_state is not None
assert verify_shard_block_message(beacon_parent_state, shard_state, block)