mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 14:34:23 +01:00
Run dotnet format (#3244)
This commit is contained in:
@@ -37,16 +37,16 @@ namespace BTCPayServer
|
||||
return (Parse($"{hd.Extkey}{suffix}"), null);
|
||||
case PubKeyProvider.Origin origin:
|
||||
var innerResult = ExtractFromPkProvider(origin.Inner, suffix);
|
||||
return (innerResult.Item1, new[] {origin.KeyOriginInfo});
|
||||
return (innerResult.Item1, new[] { origin.KeyOriginInfo });
|
||||
default:
|
||||
throw new ArgumentOutOfRangeException();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
ArgumentNullException.ThrowIfNull(str);
|
||||
str = str.Trim();
|
||||
var outputDescriptor = OutputDescriptor.Parse(str, Network);
|
||||
switch(outputDescriptor)
|
||||
switch (outputDescriptor)
|
||||
{
|
||||
case OutputDescriptor.PK _:
|
||||
case OutputDescriptor.Raw _:
|
||||
@@ -58,7 +58,7 @@ namespace BTCPayServer
|
||||
var xpubs = multi.PkProviders.Select(provider => ExtractFromPkProvider(provider));
|
||||
return (
|
||||
Parse(
|
||||
$"{multi.Threshold}-of-{(string.Join('-', xpubs.Select(tuple => tuple.Item1.ToString())))}{(multi.IsSorted?"":"-[keeporder]")}"),
|
||||
$"{multi.Threshold}-of-{(string.Join('-', xpubs.Select(tuple => tuple.Item1.ToString())))}{(multi.IsSorted ? "" : "-[keeporder]")}"),
|
||||
xpubs.SelectMany(tuple => tuple.Item2).ToArray());
|
||||
case OutputDescriptor.PKH pkh:
|
||||
return ExtractFromPkProvider(pkh.PkProvider, "-[legacy]");
|
||||
@@ -82,7 +82,7 @@ namespace BTCPayServer
|
||||
case OutputDescriptor.WSH wsh:
|
||||
if (wsh.Inner is OutputDescriptor.Multi)
|
||||
{
|
||||
return ParseOutputDescriptor(wsh.Inner.ToString());
|
||||
return ParseOutputDescriptor(wsh.Inner.ToString());
|
||||
}
|
||||
throw new FormatException("wsh descriptors are only supported with multisig");
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user