From 4d1e9e15c67f6a8d250999d67695be55137fdc3b Mon Sep 17 00:00:00 2001 From: vbuterin Date: Tue, 5 Nov 2019 10:34:48 -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 8e1ede108..3659cc599 100644 --- a/specs/core/1_new_shards.md +++ b/specs/core/1_new_shards.md @@ -293,7 +293,7 @@ def is_valid_indexed_attestation(state: BeaconState, indexed_attestation: Indexe ```python def get_shard(state: BeaconState, attestation: Attestation) -> Shard: - return (attestation.data.index + get_start_shard(state, data.slot)) % ACTIVE_SHARDS + return Shard((attestation.data.index + get_start_shard(state, data.slot)) % ACTIVE_SHARDS) ``` ## Beacon Chain Changes