From 3284aa95145a86988a769f4763d2467b6f4cc50e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20=C5=81abu=C5=9B?= Date: Wed, 16 Aug 2023 14:09:20 +0200 Subject: [PATCH] Workaround for no-op non-fungible withdrawals --- .../LedgerExtension/PostgresLedgerExtenderService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RadixDlt.NetworkGateway.PostgresIntegration/LedgerExtension/PostgresLedgerExtenderService.cs b/src/RadixDlt.NetworkGateway.PostgresIntegration/LedgerExtension/PostgresLedgerExtenderService.cs index f79029fcb..e77a71ebc 100644 --- a/src/RadixDlt.NetworkGateway.PostgresIntegration/LedgerExtension/PostgresLedgerExtenderService.cs +++ b/src/RadixDlt.NetworkGateway.PostgresIntegration/LedgerExtension/PostgresLedgerExtenderService.cs @@ -1137,7 +1137,7 @@ private async Task ProcessTransactions(ReadWriteDbContext db ? LedgerTransactionMarkerEventType.Withdrawal : LedgerTransactionMarkerEventType.Deposit; - if (nonFungibleIds?.Any() != true) + if (nonFungibleIds == null) { throw new InvalidOperationException("Unable to process data_json structure, expected fields[0].elements to be present"); }