Skip to content

Commit

Permalink
fix build after rebase;
Browse files Browse the repository at this point in the history
  • Loading branch information
greenhat committed Feb 21, 2019
1 parent b4573e1 commit 7526055
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/sigmastate/eval/RuntimeCosting.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1569,7 +1569,7 @@ trait RuntimeCosting extends SigmaLibrary with DataCosting with Slicing { IR: Ev
val res = sigmaDslBuilder.decodePoint(bytes.values)
withDefaultSize(res, costOf(node))

case Terms.MethodCall(obj, method, args) if obj.tpe.isCollectionLike =>
case Terms.MethodCall(obj, method, args, _) if obj.tpe.isCollectionLike =>
val xsC = asRep[CostedColl[Any]](evalNode(ctx, env, obj))
val (argsVals, argsCosts) = args.map {
case sfunc: Value[SFunc]@unchecked if sfunc.tpe.isFunc =>
Expand Down Expand Up @@ -1606,7 +1606,7 @@ trait RuntimeCosting extends SigmaLibrary with DataCosting with Slicing { IR: Ev
}
withDefaultSize(value, cost)

case Terms.MethodCall(obj, method, args) if obj.tpe.isOption =>
case Terms.MethodCall(obj, method, args, _) if obj.tpe.isOption =>
val optC = asRep[CostedOption[Any]](eval(obj))
val argsC = args.map(eval)
(method.name, argsC) match {
Expand Down
11 changes: 6 additions & 5 deletions src/test/scala/sigmastate/helpers/SigmaTestingCommons.scala
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
package sigmastate.helpers

import org.ergoplatform.ErgoAddressEncoder.TestnetNetworkPrefix
import org.ergoplatform.{ErgoLikeContext, ErgoAddressEncoder, ErgoBox, ErgoScriptPredef}
import org.ergoplatform.{ErgoAddressEncoder, ErgoBox, ErgoLikeContext, ErgoScriptPredef}
import org.ergoplatform.ErgoBox.{NonMandatoryRegisterId, TokenId}
import org.ergoplatform.ErgoScriptPredef.TrueProp
import org.scalatest.prop.{GeneratorDrivenPropertyChecks, PropertyChecks}
import org.scalatest.{Matchers, PropSpec}
import scorex.crypto.hash.Blake2b256
import scorex.util._
import sigmastate.Values.{Constant, EvaluatedValue, SValue, TrueLeaf, Value, ErgoTree, GroupElementConstant}
import sigmastate.eval.{CompiletimeCosting, IRContext, Evaluation}
import sigmastate.Values.{Constant, ErgoTree, EvaluatedValue, GroupElementConstant, SValue, TrueLeaf, Value}
import sigmastate.eval.{CompiletimeCosting, Evaluation, IRContext}
import sigmastate.interpreter.{CryptoConstants, Interpreter}
import sigmastate.interpreter.Interpreter.{ScriptEnv, ScriptNameProp}
import sigmastate.lang.{SigmaCompiler, TransformingSigmaBuilder}
import sigmastate.{SBoolean, SGroupElement, SType}

import scala.annotation.tailrec
import scala.language.implicitConversions
import scalan.{TestUtils, TestContexts, Nullable, RType}
import sigma.types.{PrimViewType, IsPrimView, View}
import scalan.{Nullable, RType, TestContexts, TestUtils}
import sigma.types.{IsPrimView, PrimViewType, View}
import sigmastate.serialization.ErgoTreeSerializer
import spire.util.Opt

trait SigmaTestingCommons extends PropSpec
Expand Down

0 comments on commit 7526055

Please sign in to comment.