From 64265d10f8d1f59f22cbdeb7a560fb64e15d54f2 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Sun, 3 Mar 2019 19:09:58 +0100 Subject: [PATCH] Fix for misaccounting of hotwallet in echo tests --- Logic/Support/BackendServices/ReturnBitcoinEchoUtxoOrder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Logic/Support/BackendServices/ReturnBitcoinEchoUtxoOrder.cs b/Logic/Support/BackendServices/ReturnBitcoinEchoUtxoOrder.cs index 297695f1..315965ba 100644 --- a/Logic/Support/BackendServices/ReturnBitcoinEchoUtxoOrder.cs +++ b/Logic/Support/BackendServices/ReturnBitcoinEchoUtxoOrder.cs @@ -86,7 +86,7 @@ namespace Swarmops.Logic.Support.BackendServices Int64 centsPresentation = new Swarmops.Logic.Financial.Money(satoshisToReturn, Currency.BitcoinCash).ToCurrency(this.Organization.Currency).Cents; ledgerTx2.AddRow(this.Organization.FinancialAccounts.DebtsOther, centsPresentation, this.Person); - ledgerTx2.AddRow(this.Organization.FinancialAccounts.AssetsBitcoinHot, -centsPresentation, this.Person); + ledgerTx2.AddRow(this.Organization.FinancialAccounts.AssetsBitcoinHot, -centsPresentation, this.Person).AmountForeignCents = new Swarmops.Logic.Financial.Money(-satoshisToReturn, Currency.BitcoinCash); ; } ledgerTx2.BlockchainHash = tx.GetHash().ToString(); }