From 4c1c97fe0388ddb25b36c0778249291ed1e83936 Mon Sep 17 00:00:00 2001 From: quantumagi Date: Fri, 31 Mar 2023 15:14:58 +1100 Subject: [PATCH] Pass required arguments --- src/Stratis.Features.Unity3dApi/NFTTransferIndexer.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Stratis.Features.Unity3dApi/NFTTransferIndexer.cs b/src/Stratis.Features.Unity3dApi/NFTTransferIndexer.cs index 3646ddb8b9..f29b339ca7 100644 --- a/src/Stratis.Features.Unity3dApi/NFTTransferIndexer.cs +++ b/src/Stratis.Features.Unity3dApi/NFTTransferIndexer.cs @@ -15,6 +15,8 @@ using Stratis.Bitcoin.Features.SmartContracts.Wallet; using Stratis.Bitcoin.Utilities; using Stratis.SmartContracts.CLR; +using Stratis.SmartContracts.CLR.Caching; +using Stratis.SmartContracts.CLR.Serialization; using FileMode = LiteDB.FileMode; namespace Stratis.Features.Unity3dApi @@ -65,7 +67,9 @@ public class NFTTransferIndexer : INFTTransferIndexer private IAsyncLoop indexingLoop; public NFTTransferIndexer(DataFolder dataFolder, ILoggerFactory loggerFactory, IAsyncProvider asyncProvider, INodeLifetime nodeLifetime, - ChainIndexer chainIndexer, Network network, ILocalExecutor localExecutor, Unity3dApiSettings apiSettings, ISmartContractTransactionService smartContractTransactionService = null) + ChainIndexer chainIndexer, Network network, ILocalExecutor localExecutor, Unity3dApiSettings apiSettings, + ISmartContractTransactionService smartContractTransactionService = null, IContractPrimitiveSerializer contractPrimitiveSerializer = null, + IContractAssemblyCache contractAssemblyCache = null) { this.network = network; this.dataFolder = dataFolder; @@ -74,7 +78,7 @@ public NFTTransferIndexer(DataFolder dataFolder, ILoggerFactory loggerFactory, I this.nodeLifetime = nodeLifetime; this.chainIndexer = chainIndexer; - var localCallContract = new LocalCallContract(network, smartContractTransactionService, chainIndexer, localExecutor); + var localCallContract = new LocalCallContract(network, smartContractTransactionService, chainIndexer, localExecutor, contractPrimitiveSerializer, contractAssemblyCache); this.nftContractLocalClient = new NftContractLocalClient(localCallContract, apiSettings.LocalCallSenderAddress); this.smartContractTransactionService = smartContractTransactionService;