Skip to content

Commit

Permalink
ergotree-version: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
aslesarenko committed Sep 24, 2023
1 parent c2f27b2 commit ebb8f51
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import io.circe.syntax.EncoderOps
import org.ergoplatform.sdk.utils.SerializationUtils.{parseString, serializeString}
import org.ergoplatform.sdk.utils.Zero
import sigma.util.safeNewArray
import sigmastate.Values.ErgoTree.{defaultHeaderWithVersion, setConstantSegregation}
import sigmastate.Values.ErgoTree.{ZeroHeader, headerWithVersion, setConstantSegregation}
import sigmastate.Values._
import sigmastate._
import sigmastate.eval._
Expand Down Expand Up @@ -173,7 +173,7 @@ case class ContractTemplate(
}
}

val usedErgoTreeHeader = defaultHeaderWithVersion(if (version.isDefined) version.get else treeVersion.get)
val usedErgoTreeHeader = headerWithVersion(ZeroHeader, if (version.isDefined) version.get else treeVersion.get)
ErgoTree(
setConstantSegregation(usedErgoTreeHeader),
constants,
Expand Down

0 comments on commit ebb8f51

Please sign in to comment.