Fix `SszLengthBounds` for `SszOptinal`
Closed this issue · 0 comments
tbenr commented
I think the following is wrong. We should consider the minimum bound to be as the Optional is empty.
private SszLengthBounds calcSszLengthBounds() {
return childSchema.getSszLengthBounds().addBytes(PREFIX_SIZE_BYTES).ceilToBytes();
}