From 4f39a8060cbf968012c479ac4a73d8979680e5ba Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Sat, 13 Jan 2018 01:48:19 +0900 Subject: [PATCH] Fixing bug of uncorrectly unassigned addresses --- BTCPayServer.Tests/docker-compose.yml | 2 +- BTCPayServer/Services/Invoices/InvoiceRepository.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BTCPayServer.Tests/docker-compose.yml b/BTCPayServer.Tests/docker-compose.yml index 8c2024ed4..51a05c4ab 100644 --- a/BTCPayServer.Tests/docker-compose.yml +++ b/BTCPayServer.Tests/docker-compose.yml @@ -37,7 +37,7 @@ services: - postgres nbxplorer: - image: nicolasdorier/nbxplorer:1.0.0.60 + image: nicolasdorier/nbxplorer:1.0.0.61 ports: - "32838:32838" expose: diff --git a/BTCPayServer/Services/Invoices/InvoiceRepository.cs b/BTCPayServer/Services/Invoices/InvoiceRepository.cs index 57b2b8f4a..e23d65f91 100644 --- a/BTCPayServer/Services/Invoices/InvoiceRepository.cs +++ b/BTCPayServer/Services/Invoices/InvoiceRepository.cs @@ -196,7 +196,7 @@ namespace BTCPayServer.Services.Invoices continue; var historical = new HistoricalAddressInvoiceData(); historical.InvoiceDataId = invoiceId; - historical.SetAddress(address.Value.DepositAddress, cryptoCode); + historical.SetAddress(address.Value.DepositAddress, address.Value.CryptoCode); historical.UnAssigned = DateTimeOffset.UtcNow; context.Attach(historical); context.Entry(historical).Property(o => o.UnAssigned).IsModified = true;