From e53ad9e8046e86c1e25868721fef73940b23d62c Mon Sep 17 00:00:00 2001 From: moreal Date: Fri, 30 Jun 2023 10:36:03 +0900 Subject: [PATCH] Check fav deltas contain NCG --- NineChronicles.Headless/GraphTypes/StandaloneQuery.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/NineChronicles.Headless/GraphTypes/StandaloneQuery.cs b/NineChronicles.Headless/GraphTypes/StandaloneQuery.cs index b6519b503..cb98ed722 100644 --- a/NineChronicles.Headless/GraphTypes/StandaloneQuery.cs +++ b/NineChronicles.Headless/GraphTypes/StandaloneQuery.cs @@ -127,7 +127,9 @@ public StandaloneQuery(StandaloneContext standaloneContext, IConfiguration confi TransferNCGHistory ToTransferNCGHistory(TxSuccess txSuccess, string? memo) { - var rawTransferNcgHistories = txSuccess.FungibleAssetsDelta.Select(pair => + var rawTransferNcgHistories = txSuccess.FungibleAssetsDelta + .Where(pair => pair.Value.Values.Any(fav => fav.Currency.Ticker == "NCG")) + .Select(pair => (pair.Key, pair.Value.Values.First(fav => fav.Currency.Ticker == "NCG"))) .ToArray(); var ((senderAddress, _), (recipientAddress, amount)) =