Skip to content

Commit 4c1c97f

Browse files
committed
Pass required arguments
1 parent 59840fe commit 4c1c97f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/Stratis.Features.Unity3dApi/NFTTransferIndexer.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
using Stratis.Bitcoin.Features.SmartContracts.Wallet;
1616
using Stratis.Bitcoin.Utilities;
1717
using Stratis.SmartContracts.CLR;
18+
using Stratis.SmartContracts.CLR.Caching;
19+
using Stratis.SmartContracts.CLR.Serialization;
1820
using FileMode = LiteDB.FileMode;
1921

2022
namespace Stratis.Features.Unity3dApi
@@ -65,7 +67,9 @@ public class NFTTransferIndexer : INFTTransferIndexer
6567
private IAsyncLoop indexingLoop;
6668

6769
public NFTTransferIndexer(DataFolder dataFolder, ILoggerFactory loggerFactory, IAsyncProvider asyncProvider, INodeLifetime nodeLifetime,
68-
ChainIndexer chainIndexer, Network network, ILocalExecutor localExecutor, Unity3dApiSettings apiSettings, ISmartContractTransactionService smartContractTransactionService = null)
70+
ChainIndexer chainIndexer, Network network, ILocalExecutor localExecutor, Unity3dApiSettings apiSettings,
71+
ISmartContractTransactionService smartContractTransactionService = null, IContractPrimitiveSerializer contractPrimitiveSerializer = null,
72+
IContractAssemblyCache contractAssemblyCache = null)
6973
{
7074
this.network = network;
7175
this.dataFolder = dataFolder;
@@ -74,7 +78,7 @@ public NFTTransferIndexer(DataFolder dataFolder, ILoggerFactory loggerFactory, I
7478
this.nodeLifetime = nodeLifetime;
7579
this.chainIndexer = chainIndexer;
7680

77-
var localCallContract = new LocalCallContract(network, smartContractTransactionService, chainIndexer, localExecutor);
81+
var localCallContract = new LocalCallContract(network, smartContractTransactionService, chainIndexer, localExecutor, contractPrimitiveSerializer, contractAssemblyCache);
7882

7983
this.nftContractLocalClient = new NftContractLocalClient(localCallContract, apiSettings.LocalCallSenderAddress);
8084
this.smartContractTransactionService = smartContractTransactionService;

0 commit comments

Comments
 (0)