mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-02 21:35:18 -05:00
Update specs/simple-serialize.md
Co-Authored-By: dankrad <dankrad@ethereum.org>
This commit is contained in:
@@ -119,7 +119,7 @@ Define value as an object that has properties `value.value` with the contained v
|
||||
|
||||
```python
|
||||
serialized_bytes = serialize(value.value)
|
||||
serialized_type_index = value.type_index.to_bytes(BYTES_PER_LENGTH_PREFIX, "little")
|
||||
serialized_type_index = value.type_index.to_bytes(BYTES_PER_LENGTH_OFFSET, "little")
|
||||
return serialized_type_index + serialized_bytes
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user