Skip to content

Commit

Permalink
Pass required arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
quantumagi committed Mar 31, 2023
1 parent 59840fe commit 4c1c97f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Stratis.Features.Unity3dApi/NFTTransferIndexer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 4c1c97f

Please sign in to comment.