Skip to content

Commit

Permalink
Option serialization fix in LSV5 extended
Browse files Browse the repository at this point in the history
  • Loading branch information
kushti committed Jan 10, 2025
1 parent a61c9d4 commit 53c78a4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sc/shared/src/test/scala/sigma/SigmaDslTesting.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import debox.cfor
import org.ergoplatform._
import org.ergoplatform.dsl.{ContractSpec, SigmaContractSyntax, TestContractSpec}
import org.ergoplatform.validation.ValidationRules
import org.ergoplatform.validation.ValidationRules.CheckV6Type
import org.scalacheck.Arbitrary._
import org.scalacheck.Gen.frequency
import org.scalacheck.{Arbitrary, Gen}
Expand Down Expand Up @@ -390,8 +391,9 @@ class SigmaDslTesting extends AnyPropSpec
parsed.bytes shouldBe box.bytes
}
catch {
case ValidationException(_, r: CheckSerializableTypeCode.type, Seq(SOption.OptionTypeCode), _) =>
// ignore the problem with Option serialization, but test all the other cases
// ignore the problem with Option serialization, but test all the other cases
case ValidationException(_, _: CheckV6Type.type, Seq(SOption(_)), _) =>
case ValidationException(_, _: CheckSerializableTypeCode.type, Seq(SOption.OptionTypeCode), _) =>
}

ErgoLikeContextTesting.dummy(box, activatedVersionInTests)
Expand Down

0 comments on commit 53c78a4

Please sign in to comment.