Update 0_beacon-chain.md

Did I get the type casting OK @hwwhww?
This commit is contained in:
Justin 2019-03-08 17:36:58 +01:00 committed by GitHub
parent a51d7d5db5
commit 3aedf1226a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1122,11 +1122,11 @@ def get_fork_version(fork: Fork,
```python
def get_domain(fork: Fork,
epoch: Epoch,
domain_type: bytes4) -> bytes8:
domain_type: bytes4) -> uint64:
"""
Get the domain number that represents the fork meta and signature domain.
"""
return get_fork_version(fork, epoch) + domain_type
return bytes_to_int(get_fork_version(fork, epoch) + domain_type))
```
### `get_bitfield_bit`