Skip to content

Commit 3b362c6

Browse files
gballetmkalinin
andcommitted
Use Optional[Bytes32] instead of Union[Null, Bytes32] for value diffs
Co-authored-by: Mikhail Kalinin <[email protected]>
1 parent 698650c commit 3b362c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

specs/verge/beacon-chain.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,10 @@ class SuffixStateDiff(Container):
114114
suffix: Byte
115115

116116
# Null means not currently present
117-
current_value: Union[Null, Bytes32]
117+
current_value: Optional[Bytes32]
118118

119119
# Null means value not updated
120-
new_value: Union[Null, Bytes32]
120+
new_value: Optional[Bytes32]
121121
```
122122

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

0 commit comments

Comments
 (0)