diff --git a/ProjectPlugins/CodexPlugin/MarketplaceAccess.cs b/ProjectPlugins/CodexPlugin/MarketplaceAccess.cs index f999bff..82b4e3a 100644 --- a/ProjectPlugins/CodexPlugin/MarketplaceAccess.cs +++ b/ProjectPlugins/CodexPlugin/MarketplaceAccess.cs @@ -1,5 +1,4 @@ -using CodexContractsPlugin; -using Logging; +using Logging; using Newtonsoft.Json; using Utils; diff --git a/ProjectPlugins/CodexPlugin/MarketplaceTypes.cs b/ProjectPlugins/CodexPlugin/MarketplaceTypes.cs index 5987a4e..bfdf1ff 100644 --- a/ProjectPlugins/CodexPlugin/MarketplaceTypes.cs +++ b/ProjectPlugins/CodexPlugin/MarketplaceTypes.cs @@ -78,9 +78,9 @@ namespace CodexPlugin { log.Log($"Making storage available... (" + $"size: {TotalSpace}, " + - $"maxDuration: {Time.FormatDuration(MaxDuration)})" + + $"maxDuration: {Time.FormatDuration(MaxDuration)}, " + $"minPriceForTotalSpace: {MinPriceForTotalSpace}, " + - $"maxCollateral: {MaxCollateral}, "); + $"maxCollateral: {MaxCollateral})"); } } diff --git a/Tests/CodexTests/BasicTests/ExampleTests.cs b/Tests/CodexTests/BasicTests/ExampleTests.cs index c910b3d..473bf98 100644 --- a/Tests/CodexTests/BasicTests/ExampleTests.cs +++ b/Tests/CodexTests/BasicTests/ExampleTests.cs @@ -149,8 +149,7 @@ namespace CodexTests.BasicTests Assert.That(filledSlotEvents.Length, Is.EqualTo(purchase.MinRequiredNumberOfNodes)); for (var i = 0; i < purchase.MinRequiredNumberOfNodes; i++) { - var filledSlotEvent = filledSlotEvents[i]; - Assert.That(filledSlotEvent.SlotIndex, Is.EqualTo(i)); + var filledSlotEvent = filledSlotEvents.Single(e => e.SlotIndex == i); Assert.That(filledSlotEvent.RequestId.ToHex(), Is.EqualTo(request.RequestId.ToHex())); Assert.That(filledSlotEvent.Host, Is.EqualTo(seller.EthAddress)); }