Fix potential stack overflow

This commit is contained in:
nicolas.dorier 2024-10-15 23:11:28 +09:00
parent c43721d489
commit 05887cf8b0
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE
2 changed files with 6 additions and 6 deletions

View File

@ -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)

View File

@ -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);