Skip to content

Commit

Permalink
i966-template-compiler: fix for Scala 2.11
Browse files Browse the repository at this point in the history
  • Loading branch information
aslesarenko committed May 9, 2024
1 parent 98fd5b7 commit 232c25d
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@ class SigmaTemplateCompilerTest extends AnyPropSpec with ScalaCheckPropertyCheck
val template = compiler.compile(Map.empty, source)

template.parameters should contain theSameElementsInOrderAs IndexedSeq(
Parameter("p", "", 0),
Parameter("p", "", 0)
)
template.constTypes should contain theSameElementsInOrderAs Seq(SBoolean)
template.constValues.get should contain theSameElementsInOrderAs IndexedSeq(
Some(true),
Some(true)
)

val sigmaCompiler = new SigmaCompiler(ErgoAddressEncoder.MainnetNetworkPrefix)
Expand All @@ -119,13 +119,13 @@ class SigmaTemplateCompilerTest extends AnyPropSpec with ScalaCheckPropertyCheck

template.parameters should contain theSameElementsInOrderAs IndexedSeq(
Parameter("low", "", 0),
Parameter("high", "", 1),
Parameter("high", "", 1)
)
template.constTypes should contain theSameElementsInOrderAs Seq(SInt, SInt)
// check parsed default values
template.constValues.get should contain theSameElementsInOrderAs IndexedSeq(
Some(0),
None,
None
)

val sigmaCompiler = new SigmaCompiler(ErgoAddressEncoder.MainnetNetworkPrefix)
Expand Down

0 comments on commit 232c25d

Please sign in to comment.