Make output correctly reference transaction it comes from
MODIFY
WalletWasabi.Tests/Helpers/BitcoinFactory.cs
WalletWasabi.Tests/Helpers/BitcoinFactory.cs
@@ -47,16 +47,17 @@ public static class BitcoinFactory
tx.Outputs.Add(output);
}
+ var stx = new SmartTransaction(tx, Height.Mempool);
var idx = (uint)othersOutputs.Count() - 1;
foreach (var txo in ownOutputs)
{
idx++;
var hdpk = txo.hdpk;
tx.Outputs.Add(new TxOut(txo.value, hdpk.P2wpkhScript));
- var sc = new SmartCoin(new SmartTransaction(tx, Height.Mempool), idx, hdpk);
+ var sc = new SmartCoin(stx, idx, hdpk);
walletOutputs.Add(sc);
}
- var stx = new SmartTransaction(tx, Height.Mempool);
+
foreach (var sc in walletInputs)
{
stx.WalletInputs.Add(sc);

Make output correctly reference transaction it comes from