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

[minor] Use static instances if available #9610

Merged
merged 2 commits into from
Nov 26, 2022

Conversation

kiminuo
Copy link
Collaborator

@kiminuo kiminuo commented Nov 24, 2022

No description provided.

@@ -219,7 +219,7 @@ public ZeroCredentialsRequestData CreateRequestForZeroAmount()
return credentials.Select(x => new Credential(x.Requested.Value, x.Requested.Randomness, x.Issued));
}

private Transcript BuildTransnscript(bool isNullRequest)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Typo

@@ -39,14 +39,14 @@ public static Coin CreateCoin(Key? key = null, Money? amount = null, ScriptPubKe
public static Tuple<Coin, OwnershipProof> CreateCoinWithOwnershipProof(Key? key = null, Money? amount = null, uint256? roundId = null, ScriptPubKeyType scriptPubKeyType = ScriptPubKeyType.Segwit)
{
key ??= new();
var coin = WabiSabiFactory.CreateCoin(key, amount, scriptPubKeyType);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Just simplifies the name

=> new(RoundParameters.Create(cfg, round.Parameters.Network, round.Parameters.MiningFeeRate, round.Parameters.CoordinationFeeRate, round.Parameters.MaxSuggestedAmount),
blameOf: round,
blameWhitelist: round.Alices.Select(x => x.Coin.Outpoint).ToHashSet(),
InsecureRandom.Instance);
Copy link
Collaborator Author

@kiminuo kiminuo Nov 24, 2022

Choose a reason for hiding this comment

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

Split into multiple lines (the line was too long)

@kiminuo kiminuo marked this pull request as ready for review November 25, 2022 08:15
@kiminuo kiminuo requested a review from molnard November 25, 2022 08:16
@lontivero lontivero merged commit 6bbf47d into WalletWasabi:master Nov 26, 2022
kiminuo added a commit to kiminuo/WalletWasabi that referenced this pull request Nov 30, 2022
* tpyo (see what I did?)

* Use static instances
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

3 participants