Skip to content

Commit

Permalink
todo removed, tests improved
Browse files Browse the repository at this point in the history
  • Loading branch information
kushti committed Jun 3, 2024
1 parent b78ff7a commit bc71b2f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ class CoreDataSerializer {
serialize(v, elemType, w)
}

// TODO v6.0 (3h): support Option[T] (see https://github.com/ScorexFoundation/sigmastate-interpreter/issues/659)
case _ =>
CheckSerializableTypeCode(tpe.typeCode)
throw new SerializerException(s"Don't know how to serialize ($v, $tpe)")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ class DataSerializerSpecification extends SerializationSpecification {
roundtrip[SOption[T]](Some(in), SOption(tpe))
roundtrip[SOption[SCollection[T]]](Some(Colls.fromItems(in)(tT)), SOption(SCollectionType(tpe)))
roundtrip[SCollection[SOption[T]]](Colls.fromItems(Option(in), None.asInstanceOf[Option[T#WrappedType]])(OptionType(tT)), SCollectionType(SOption(tpe)))
roundtrip[SOption[SOption[T]]](None, SOption(SOption(tpe)))
roundtrip[SOption[SOption[T]]](Some(Some(in)), SOption(SOption(tpe)))
}
}
Expand Down

0 comments on commit bc71b2f

Please sign in to comment.