Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Step forward to Remove TransactionSummary (1/n) #11520

Conversation

kiminuo
Copy link
Collaborator

@kiminuo kiminuo commented Sep 20, 2023

This is another PR to simplify #11458.

Easy to review commit by commit.

@@ -17,7 +17,7 @@ public partial class CoinJoinHistoryItemViewModel : HistoryItemViewModelBase
bool isSingleCoinJoinTransaction)
: base(orderIndex, transactionSummary)
{
Date = transactionSummary.DateTime.ToLocalTime();
Date = transactionSummary.FirstSeen.ToLocalTime();
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SmartTransaction has FirstSeen property, so rename it.

@@ -78,4 +79,7 @@ private static IEnumerable<BitcoinAddress> GetDestinationAddresses(ICollection<I
// All outputs that are not my own are the destinations.
return foreignOutputs.Select(x => x.DestinationAddress);
}

public static int GetConfirmations(this SmartTransaction transaction, int blockchainTipHeight)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extracted from TransactionSummaryExtensions.cs

@@ -123,7 +122,7 @@ public static bool NotNullAndNotEmpty<T>(this IEnumerable<T> source)
}
}
}

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some whitespace from a previous PR.

@kiminuo kiminuo marked this pull request as ready for review September 20, 2023 09:18
@kiminuo kiminuo force-pushed the feature/2023-09-20-TransactionSummary-1-n branch from 1ee5a02 to e660115 Compare September 20, 2023 09:24
Copy link
Collaborator

@adamPetho adamPetho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tACK, changes look trivial and correct. IMO mergeable once the CI is finished.

@adamPetho adamPetho changed the title Remove TransactionSummary (1/n) Step forward to Remove TransactionSummary (1/n) Sep 20, 2023
@adamPetho adamPetho merged commit 4a52b16 into WalletWasabi:master Sep 20, 2023
7 checks passed
@kiminuo kiminuo deleted the feature/2023-09-20-TransactionSummary-1-n branch September 20, 2023 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants