Skip to content

Commit

Permalink
Merge pull request #2107 from moreal/bugfix/transfer-ncg-histories
Browse files Browse the repository at this point in the history
  • Loading branch information
moreal authored Jun 30, 2023
2 parents a6a155a + e53ad9e commit 14ca945
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion NineChronicles.Headless/GraphTypes/StandaloneQuery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)) =
Expand Down

0 comments on commit 14ca945

Please sign in to comment.