Use Optional[Bytes32] instead of Union[Null, Bytes32] for value diffs

Co-authored-by: Mikhail Kalinin <noblesse.knight@gmail.com>
This commit is contained in:
Guillaume Ballet 2023-02-10 14:51:14 +01:00
parent 698650cd19
commit 3b362c6115
1 changed files with 2 additions and 2 deletions

View File

@ -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.