@@ -210,7 +210,7 @@ private async Task UpdatePaymentStates(string cryptoCode, InvoiceEntity[] invoic
210210 }
211211
212212
213- return HandlePaymentData ( cryptoCode , transfer . Address , transfer . Amount , transfer . SubaddressIndex . AccountIndex ,
213+ return HandlePaymentData ( cryptoCode , transfer . Amount , transfer . SubaddressIndex . AccountIndex ,
214214 transfer . SubaddressIndex . Index , transfer . TransactionId , transfer . Confirmations , transfer . Height ,
215215 transfer . UnlockTime , invoice ,
216216 updatedPaymentEntities ) ;
@@ -259,7 +259,6 @@ private async Task OnTransactionUpdated(string cryptoCode, string transactionHas
259259 var index = destination . First ( ) . SubaddressIndex ;
260260
261261 await HandlePaymentData ( cryptoCode ,
262- destination . Key ,
263262 destination . Sum ( destination1 => destination1 . Amount ) ,
264263 index . AccountIndex ,
265264 index . Index ,
@@ -329,7 +328,7 @@ private async Task<GetTransferByTransactionIdResponse> GetTransferByTxId(string
329328 }
330329 }
331330
332- private async Task HandlePaymentData ( string cryptoCode , string address , long totalAmount , uint subaccountIndex ,
331+ private async Task HandlePaymentData ( string cryptoCode , long totalAmount , uint subaccountIndex ,
333332 uint subaddressIndex ,
334333 string txId , int confirmations , ulong blockHeight , int locktime , InvoiceEntity invoice ,
335334 List < ( PaymentEntity Payment , InvoiceEntity invoice ) > paymentsToUpdate )
@@ -349,15 +348,6 @@ private async Task HandlePaymentData(string cryptoCode, string address, long tot
349348 InvoiceSettledConfirmationThreshold = promptDetails . InvoiceSettledConfirmationThreshold
350349 } ;
351350
352- // set destination address from transfer
353- var prompts = invoice . GetPaymentPrompts ( ) ;
354- var prompt = prompts [ pmi ] ;
355- if ( prompt != null )
356- {
357- prompt . Destination = address ;
358- invoice . SetPaymentPrompts ( prompts ) ;
359- }
360-
361351 var status = GetStatus ( details , invoice . SpeedPolicy ) ? PaymentStatus . Settled : PaymentStatus . Processing ;
362352 var paymentData = new PaymentData
363353 {
0 commit comments