Update specs/core/1_new_shards.md

Co-Authored-By: Hsiao-Wei Wang <hwwang156@gmail.com>
This commit is contained in:
vbuterin 2019-11-05 10:34:48 -08:00 committed by Danny Ryan
parent 9810a3d260
commit 4d1e9e15c6
No known key found for this signature in database
GPG Key ID: 2765A792E42CE07A
1 changed files with 1 additions and 1 deletions

View File

@ -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