mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 09:54:30 +01:00
Fix potential stack overflow
This commit is contained in:
parent
c43721d489
commit
05887cf8b0
@ -101,11 +101,11 @@ namespace BTCPayServer.Services.Altcoins.Monero.Payments
|
||||
|
||||
public MoneroLikeOnChainPaymentMethodDetails ParsePaymentPromptDetails(Newtonsoft.Json.Linq.JToken details)
|
||||
{
|
||||
return ParsePaymentPromptDetails(details);
|
||||
return details.ToObject<MoneroLikeOnChainPaymentMethodDetails>(Serializer);
|
||||
}
|
||||
object IPaymentMethodHandler.ParsePaymentPromptDetails(Newtonsoft.Json.Linq.JToken details)
|
||||
{
|
||||
return details.ToObject<MoneroLikeOnChainPaymentMethodDetails>(Serializer);
|
||||
return ParsePaymentPromptDetails(details);
|
||||
}
|
||||
|
||||
public MoneroLikePaymentData ParsePaymentDetails(JToken details)
|
||||
|
@ -76,14 +76,14 @@ namespace BTCPayServer.Services.Altcoins.Zcash.Payments
|
||||
context.TrackedDestinations.Add(address.Address);
|
||||
}
|
||||
|
||||
object IPaymentMethodHandler.ParsePaymentPromptDetails(Newtonsoft.Json.Linq.JToken details)
|
||||
{
|
||||
return ParsePaymentPromptDetails(details);
|
||||
}
|
||||
public ZcashPaymentPromptDetails ParsePaymentPromptDetails(Newtonsoft.Json.Linq.JToken details)
|
||||
{
|
||||
return details.ToObject<ZcashPaymentPromptDetails>(Serializer);
|
||||
}
|
||||
object IPaymentMethodHandler.ParsePaymentPromptDetails(Newtonsoft.Json.Linq.JToken details)
|
||||
{
|
||||
return ParsePaymentPromptDetails(details);
|
||||
}
|
||||
object IPaymentMethodHandler.ParsePaymentMethodConfig(JToken config)
|
||||
{
|
||||
return ParsePaymentMethodConfig(config);
|
||||
|
Loading…
Reference in New Issue
Block a user