From 213032e51f1a929dc96e3144cd81de65907feaf8 Mon Sep 17 00:00:00 2001 From: vbuterin Date: Tue, 5 Nov 2019 10:32:18 -0800 Subject: [PATCH] Update specs/core/1_new_shards.md Co-Authored-By: Hsiao-Wei Wang --- specs/core/1_new_shards.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/core/1_new_shards.md b/specs/core/1_new_shards.md index c27b4d0c9..c3e6ebc53 100644 --- a/specs/core/1_new_shards.md +++ b/specs/core/1_new_shards.md @@ -290,7 +290,7 @@ def is_valid_indexed_attestation(state: BeaconState, indexed_attestation: Indexe ### `get_attestation_shard` ```python -def get_shard(state: BeaconState, attestation: Attestation): +def get_shard(state: BeaconState, attestation: Attestation) -> Shard: return (attestation.data.index + get_start_shard(state, data.slot)) % ACTIVE_SHARDS ```