From 71443b49ec7977b6ae74f4a51b80ac8ee5500a7e Mon Sep 17 00:00:00 2001 From: Sergey Nazarov Date: Mon, 2 Sep 2024 15:13:51 +0300 Subject: [PATCH] wip --- src/main/scala/units/client/contract/ContractFunction.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/units/client/contract/ContractFunction.scala b/src/main/scala/units/client/contract/ContractFunction.scala index 423f90c4..17ed5fed 100644 --- a/src/main/scala/units/client/contract/ContractFunction.scala +++ b/src/main/scala/units/client/contract/ContractFunction.scala @@ -11,8 +11,8 @@ import cats.syntax.either.* abstract class ContractFunction(name: String, reference: BlockHash, extraArgs: Either[CommonError, List[EVALUATED]]) { def toFunctionCall(blockHash: BlockHash, transfersRootHash: Digest, lastClToElTransferIndex: Long): Job[FUNCTION_CALL] = (for { - hash <- CONST_STRING(blockHash) - ref <- CONST_STRING(reference) + hash <- CONST_STRING(toHexNoPrefix(blockHash.getBytes)) + ref <- CONST_STRING(toHexNoPrefix(reference.getBytes)) trh <- CONST_STRING(toHexNoPrefix(transfersRootHash)) xtra <- extraArgs } yield FUNCTION_CALL(