Skip to content

Commit

Permalink
Adapted for ScriptRunner.applyGeneric()
Browse files Browse the repository at this point in the history
  • Loading branch information
xrtm000 committed Oct 17, 2023
1 parent 4885cf5 commit e8f807e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ object ScriptRunner {
blockchain.newEvaluatorMode,
blockchain.isFeatureActivated(RideV6),
enableExecutionLog,
blockchain.isFeatureActivated(ConsensusImprovements)
blockchain.isFeatureActivated(ConsensusImprovements),
blockchain.isFeatureActivated(LightNode)
)

def applyGeneric(
Expand All @@ -72,7 +73,8 @@ object ScriptRunner {
newEvaluatorMode: Boolean,
checkWeakPk: Boolean,
enableExecutionLog: Boolean,
fixBigScriptField: Boolean
fixBigScriptField: Boolean,
fixedThrownError: Boolean
): (Log[Id], Int, Either[ExecutionError, EVALUATED]) = {

def evalVerifier(
Expand Down Expand Up @@ -136,7 +138,7 @@ object ScriptRunner {
newMode = newEvaluatorMode,
onExceed,
enableExecutionLog,
fixedThrownError = blockchain.isFeatureActivated(LightNode)
fixedThrownError
)

(log, limit - unusedComplexity, result)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ class MatcherBlockchainTest extends PropSpec with MockFactory with WithDomain {
newEvaluatorMode = true,
checkWeakPk = true,
enableExecutionLog = false,
fixBigScriptField = true
fixBigScriptField = true,
fixedThrownError = true
)
._3 shouldBe Right(CONST_BOOLEAN(true))
}
Expand Down

0 comments on commit e8f807e

Please sign in to comment.