From 011fdfbc4d68d84797847a204a2c6d42acb57781 Mon Sep 17 00:00:00 2001 From: noescape00 Date: Thu, 3 Jun 2021 17:38:31 +0300 Subject: [PATCH 1/2] hitfix --- .../Controllers/Unity3dController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Stratis.Features.Unity3dApi/Controllers/Unity3dController.cs b/src/Stratis.Features.Unity3dApi/Controllers/Unity3dController.cs index e304a8f9a8..58f762a800 100644 --- a/src/Stratis.Features.Unity3dApi/Controllers/Unity3dController.cs +++ b/src/Stratis.Features.Unity3dApi/Controllers/Unity3dController.cs @@ -46,7 +46,7 @@ public class Unity3dController : Controller private readonly ILogger logger; public Unity3dController(ILoggerFactory loggerFactory, IAddressIndexer addressIndexer, - IBlockStore blockStore, IChainState chainState, Network network, ICoinView coinView, WalletController walletController, ChainIndexer chainIndexer, IStakeChain stakeChain) + IBlockStore blockStore, IChainState chainState, Network network, ICoinView coinView, WalletController walletController, ChainIndexer chainIndexer, IStakeChain stakeChain = null) { Guard.NotNull(loggerFactory, nameof(loggerFactory)); this.logger = loggerFactory.CreateLogger(this.GetType().FullName); From 37af65929ba918f21c507317e69beea6ee7ceeca Mon Sep 17 00:00:00 2001 From: noescape00 Date: Thu, 3 Jun 2021 17:40:22 +0300 Subject: [PATCH 2/2] remove guard --- .../Controllers/Unity3dController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Stratis.Features.Unity3dApi/Controllers/Unity3dController.cs b/src/Stratis.Features.Unity3dApi/Controllers/Unity3dController.cs index 58f762a800..c13c4b078d 100644 --- a/src/Stratis.Features.Unity3dApi/Controllers/Unity3dController.cs +++ b/src/Stratis.Features.Unity3dApi/Controllers/Unity3dController.cs @@ -57,7 +57,7 @@ public Unity3dController(ILoggerFactory loggerFactory, IAddressIndexer addressIn this.coinView = Guard.NotNull(coinView, nameof(coinView)); this.walletController = Guard.NotNull(walletController, nameof(walletController)); this.chainIndexer = Guard.NotNull(chainIndexer, nameof(chainIndexer)); - this.stakeChain = Guard.NotNull(stakeChain, nameof(stakeChain)); + this.stakeChain = stakeChain; } ///