diff --git a/BTCPayServer.Common/BTCPayServer.Common.csproj b/BTCPayServer.Common/BTCPayServer.Common.csproj index a2a325513..94514cc10 100644 --- a/BTCPayServer.Common/BTCPayServer.Common.csproj +++ b/BTCPayServer.Common/BTCPayServer.Common.csproj @@ -4,6 +4,6 @@ - + diff --git a/BTCPayServer/DerivationSchemeParser.cs b/BTCPayServer/DerivationSchemeParser.cs index ca2bc954b..f6ca91338 100644 --- a/BTCPayServer/DerivationSchemeParser.cs +++ b/BTCPayServer/DerivationSchemeParser.cs @@ -48,9 +48,9 @@ namespace BTCPayServer throw new FormatException(); } if (type == DerivationType.Segwit) - return new DirectDerivationStrategy(extPubKey) { Segwit = true }; + return new DirectDerivationStrategy(extPubKey, true); if (type == DerivationType.Legacy) - return new DirectDerivationStrategy(extPubKey) { Segwit = false }; + return new DirectDerivationStrategy(extPubKey, false); if (type == DerivationType.SegwitP2SH) return BtcPayNetwork.NBXplorerNetwork.DerivationStrategyFactory.Parse(extPubKey.ToString() + "-[p2sh]"); throw new FormatException();