BlockExplorer links should be using payment method ids (#6273)

This commit is contained in:
Nicolas Dorier
2024-10-04 16:58:13 +09:00
committed by GitHub
parent c3e51f51b6
commit 5704919b3a
30 changed files with 130 additions and 85 deletions

View File

@@ -213,9 +213,7 @@ namespace BTCPayServer.Models.PaymentRequestViewModels
}
string txId = paymentEntity.Id;
// TODO: Move that in an extension
var cryptoCode = handlers.TryGetNetwork(paymentMethodId)?.CryptoCode;
string link = cryptoCode is null ? null : txLinkProvider.GetTransactionLink(cryptoCode, txId);
string link = paymentMethodId is null ? null : txLinkProvider.GetTransactionLink(paymentMethodId, txId);
return new ViewPaymentRequestViewModel.PaymentRequestInvoicePayment
{