mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-10 17:26:05 +01:00
If shitcoins are removed, dont try to hash its cryptocode for nbx (#5373)
This commit is contained in:
parent
076c20a3b7
commit
0cf6d39f02
2 changed files with 2 additions and 2 deletions
|
@ -29,7 +29,7 @@ namespace BTCPayServer.Data
|
||||||
if (index == -1)
|
if (index == -1)
|
||||||
return PaymentMethodId.Parse("BTC");
|
return PaymentMethodId.Parse("BTC");
|
||||||
/////////////////////////
|
/////////////////////////
|
||||||
return PaymentMethodId.Parse(addressInvoiceData.Address.Substring(index + 1));
|
return PaymentMethodId.TryParse(addressInvoiceData.Address.Substring(index + 1));
|
||||||
}
|
}
|
||||||
#pragma warning restore CS0618
|
#pragma warning restore CS0618
|
||||||
}
|
}
|
||||||
|
|
|
@ -584,7 +584,7 @@ namespace BTCPayServer.Services.Invoices
|
||||||
entity.RefundMail = invoice.CustomerEmail;
|
entity.RefundMail = invoice.CustomerEmail;
|
||||||
if (invoice.AddressInvoices != null)
|
if (invoice.AddressInvoices != null)
|
||||||
{
|
{
|
||||||
entity.AvailableAddressHashes = invoice.AddressInvoices.Select(a => a.GetAddress() + a.GetPaymentMethodId().ToString()).ToHashSet();
|
entity.AvailableAddressHashes = invoice.AddressInvoices.Select(a => a.GetAddress() + a.GetPaymentMethodId()).ToHashSet();
|
||||||
}
|
}
|
||||||
if (invoice.Events != null)
|
if (invoice.Events != null)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue