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:
parent
698650cd19
commit
3b362c6115
|
@ -114,10 +114,10 @@ class SuffixStateDiff(Container):
|
||||||
suffix: Byte
|
suffix: Byte
|
||||||
|
|
||||||
# Null means not currently present
|
# Null means not currently present
|
||||||
current_value: Union[Null, Bytes32]
|
current_value: Optional[Bytes32]
|
||||||
|
|
||||||
# Null means value not updated
|
# 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.
|
*Note*: on the Kaustinen testnet, `new_value` is ommitted from the container.
|
||||||
|
|
Loading…
Reference in New Issue