Skip to content

Commit

Permalink
Use Optional[Bytes32] instead of Union[Null, Bytes32] for value diffs
Browse files Browse the repository at this point in the history
Co-authored-by: Mikhail Kalinin <noblesse.knight@gmail.com>
  • Loading branch information
gballet and mkalinin committed Feb 10, 2023
1 parent 6631f53 commit db74090
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions specs/verge/beacon-chain.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,10 @@ class SuffixStateDiff(Container):
suffix: Byte

# Null means not currently present
current_value: Union[Null, Bytes32]
current_value: Optional[Bytes32]

# Null means value not updated
new_value: Union[Null, Bytes32]
new_value: Optional[Bytes32]
```

*Note*: on the Kaustinen testnet, `new_value` is ommitted from the container.
Expand Down

0 comments on commit db74090

Please sign in to comment.