From 3c7ee3cc570d6de2198625da9f5cbac2eaa28f02 Mon Sep 17 00:00:00 2001 From: Maksim Strebkov <257byte@gmail.com> Date: Thu, 11 Jan 2024 20:54:55 +0300 Subject: [PATCH 1/2] Display zero storage fee instead of null --- .../OperationRepository.SmartRollupExecuteOperation.cs | 4 ++-- .../OperationRepository.SmartRollupOriginateOperation.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Tzkt.Api/Repositories/OperationRepository.SmartRollupExecuteOperation.cs b/Tzkt.Api/Repositories/OperationRepository.SmartRollupExecuteOperation.cs index 1a29224e3..441ab19fa 100644 --- a/Tzkt.Api/Repositories/OperationRepository.SmartRollupExecuteOperation.cs +++ b/Tzkt.Api/Repositories/OperationRepository.SmartRollupExecuteOperation.cs @@ -149,7 +149,7 @@ public async Task> GetSmartRollupExecut StorageLimit = row.StorageLimit, StorageUsed = row.StorageUsed, BakerFee = row.BakerFee, - StorageFee = row.StorageFee, + StorageFee = row.StorageFee ?? 0, Status = OpStatuses.ToString(row.Status), Rollup = row.SmartRollupId == null ? null : Accounts.GetAlias(row.SmartRollupId), Commitment = row.cId == null ? null : new() @@ -239,7 +239,7 @@ public async Task GetSmartRollupExecuteOps(SrOperationFilter filter, break; case "storageFee": foreach (var row in rows) - result[j++][i] = row.StorageFee; + result[j++][i] = row.StorageFee ?? 0; break; case "status": foreach (var row in rows) diff --git a/Tzkt.Api/Repositories/OperationRepository.SmartRollupOriginateOperation.cs b/Tzkt.Api/Repositories/OperationRepository.SmartRollupOriginateOperation.cs index 1a38ce841..c7400a1a5 100644 --- a/Tzkt.Api/Repositories/OperationRepository.SmartRollupOriginateOperation.cs +++ b/Tzkt.Api/Repositories/OperationRepository.SmartRollupOriginateOperation.cs @@ -101,7 +101,7 @@ public async Task> GetSmartRollupOrig StorageLimit = row.StorageLimit, StorageUsed = row.StorageUsed, BakerFee = row.BakerFee, - StorageFee = row.StorageFee, + StorageFee = row.StorageFee ?? 0, Status = OpStatuses.ToString(row.Status), PvmKind = PvmKinds.ToString((int)row.PvmKind), Kernel = row.Kernel, @@ -190,7 +190,7 @@ public async Task GetSmartRollupOriginateOps(SrOperationFilter filte break; case "storageFee": foreach (var row in rows) - result[j++][i] = row.StorageFee; + result[j++][i] = row.StorageFee ?? 0; break; case "status": foreach (var row in rows) From 82506cc5c3eda46e22cc44135d0c0e8a4cf55921 Mon Sep 17 00:00:00 2001 From: Maksim Strebkov <257byte@gmail.com> Date: Thu, 11 Jan 2024 20:58:16 +0300 Subject: [PATCH 2/2] v1.12.5 --- Tzkt.Api.Tests/Tzkt.Api.Tests.csproj | 2 +- Tzkt.Api/Swagger/Swagger.cs | 2 +- Tzkt.Api/Tzkt.Api.csproj | 2 +- Tzkt.Data/Tzkt.Data.csproj | 2 +- Tzkt.Sync.Tests/Tzkt.Sync.Tests.csproj | 2 +- Tzkt.Sync/Tzkt.Sync.csproj | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Tzkt.Api.Tests/Tzkt.Api.Tests.csproj b/Tzkt.Api.Tests/Tzkt.Api.Tests.csproj index 74734fe23..fe84a39a4 100644 --- a/Tzkt.Api.Tests/Tzkt.Api.Tests.csproj +++ b/Tzkt.Api.Tests/Tzkt.Api.Tests.csproj @@ -5,7 +5,7 @@ enable false 10 - 1.12.4 + 1.12.5 diff --git a/Tzkt.Api/Swagger/Swagger.cs b/Tzkt.Api/Swagger/Swagger.cs index 5f54b8143..7a9ad64ef 100644 --- a/Tzkt.Api/Swagger/Swagger.cs +++ b/Tzkt.Api/Swagger/Swagger.cs @@ -2,7 +2,7 @@ { public static class Swagger { - const string Version = "1.12.4"; + const string Version = "1.12.5"; const string Path = "/v1/swagger.json"; public static void AddOpenApiDocument(this IServiceCollection services) diff --git a/Tzkt.Api/Tzkt.Api.csproj b/Tzkt.Api/Tzkt.Api.csproj index 21f4cab9a..523152a70 100644 --- a/Tzkt.Api/Tzkt.Api.csproj +++ b/Tzkt.Api/Tzkt.Api.csproj @@ -1,7 +1,7 @@  - 1.12.4 + 1.12.5 diff --git a/Tzkt.Data/Tzkt.Data.csproj b/Tzkt.Data/Tzkt.Data.csproj index 275764315..cd8c52150 100644 --- a/Tzkt.Data/Tzkt.Data.csproj +++ b/Tzkt.Data/Tzkt.Data.csproj @@ -2,7 +2,7 @@ net7.0 - 1.12.4 + 1.12.5 diff --git a/Tzkt.Sync.Tests/Tzkt.Sync.Tests.csproj b/Tzkt.Sync.Tests/Tzkt.Sync.Tests.csproj index 1b0c4df2e..e29dbe560 100644 --- a/Tzkt.Sync.Tests/Tzkt.Sync.Tests.csproj +++ b/Tzkt.Sync.Tests/Tzkt.Sync.Tests.csproj @@ -5,7 +5,7 @@ net7.0 enable enable - 1.12.4 + 1.12.5 diff --git a/Tzkt.Sync/Tzkt.Sync.csproj b/Tzkt.Sync/Tzkt.Sync.csproj index fba323b75..a23d22930 100644 --- a/Tzkt.Sync/Tzkt.Sync.csproj +++ b/Tzkt.Sync/Tzkt.Sync.csproj @@ -1,7 +1,7 @@  - 1.12.4 + 1.12.5