mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-02 20:24:55 -05:00
conform to standard
This commit is contained in:
@@ -251,7 +251,7 @@ All integers are interpreted as **big endian**.
|
||||
byte_length = int_size / 8
|
||||
new_index = current_index + byte_length
|
||||
assert(len(rawbytes) >= new_index)
|
||||
return int.from_bytes(rawbytes[current_index:new_index], 'big'), new_index
|
||||
return int.from_bytes(rawbytes[current_index:current_index+byte_length], 'big'), new_index
|
||||
```
|
||||
|
||||
#### Bool
|
||||
|
||||
Reference in New Issue
Block a user