Skip to content

Commit

Permalink
xor_eval rollback
Browse files Browse the repository at this point in the history
  • Loading branch information
kushti committed Apr 4, 2024
1 parent e8724b8 commit dcec230
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion data/shared/src/main/scala/sigma/SigmaDataReflection.scala
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,8 @@ object SigmaDataReflection {
registerClassEntry(clazz,
methods = Map(
mkMethod(clazz, "xor_eval", Array[Class[_]](classOf[MethodCall], classOf[SigmaDslBuilder], classOf[Coll[_]], classOf[Coll[_]], classOf[ErgoTreeEvaluator])) { (obj, args) =>
obj.asInstanceOf[SGlobalMethods.type].xor_eval(
obj.asInstanceOf[SGlobalMethods.type].xor_eval(args(0).asInstanceOf[MethodCall],
args(1).asInstanceOf[SigmaDslBuilder],
args(2).asInstanceOf[Coll[Byte]],
args(3).asInstanceOf[Coll[Byte]])(args(4).asInstanceOf[ErgoTreeEvaluator])
}
Expand Down
2 changes: 1 addition & 1 deletion data/shared/src/main/scala/sigma/ast/methods.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1494,7 +1494,7 @@ case object SGlobalMethods extends MonoTypeMethods {
* Called via reflection based on naming convention.
* @see SMethod.evalMethod, Xor.eval, Xor.xorWithCosting
*/
def xor_eval(ls: Coll[Byte], rs: Coll[Byte])
def xor_eval(mc: MethodCall, G: SigmaDslBuilder, ls: Coll[Byte], rs: Coll[Byte])
(implicit E: ErgoTreeEvaluator): Coll[Byte] = {
Xor.xorWithCosting(ls, rs)
}
Expand Down

0 comments on commit dcec230

Please sign in to comment.