Skip to content

Commit

Permalink
fixing post-merging failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
kushti committed Sep 3, 2024
1 parent 1990030 commit d284f79
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,8 @@ class ErgoTreeSpecification extends SigmaDslTesting with ContractsTestkit with C
*/
case class MInfo(methodId: Byte, method: SMethod, isResolvableFromIds: Boolean = true)

def isV6Activated = VersionContext.current.isV6SoftForkActivated

// NOTE, the type code constants are checked above
// The methodId codes as checked here, they MUST be PRESERVED.
// The following table should be made dependent on HF activation
Expand Down Expand Up @@ -402,7 +404,11 @@ class ErgoTreeSpecification extends SigmaDslTesting with ContractsTestkit with C
MInfo(7, timestampMethod), MInfo(8, nBitsMethod), MInfo(9, heightMethod),
MInfo(10, extensionRootMethod), MInfo(11, minerPkMethod), MInfo(12, powOnetimePkMethod),
MInfo(13, powNonceMethod), MInfo(14, powDistanceMethod), MInfo(15, votesMethod)
), true)
) ++ (if (VersionContext.current.isV6SoftForkActivated) {
Seq(MInfo(16, checkPowMethod))
} else {
Seq.empty[MInfo]
}), true)
},
{ import SPreHeaderMethods._
(SPreHeader.typeId, Seq(
Expand Down

0 comments on commit d284f79

Please sign in to comment.