LightningSupportedPaymentMethod.CryptoCode is never null

This commit is contained in:
nicolas.dorier
2021-06-14 18:22:00 +09:00
parent 3d21d2724e
commit cf7c3c2bf7

View File

@@ -8,7 +8,7 @@ namespace BTCPayServer.Payments.Lightning
public class LightningSupportedPaymentMethod : ISupportedPaymentMethod
{
public const string InternalNode = "Internal Node";
public string? CryptoCode { get; set; }
public string CryptoCode { get; set; } = string.Empty;
[JsonIgnore]
public PaymentMethodId PaymentId => new PaymentMethodId(CryptoCode, PaymentTypes.LightningLike);