diff --git a/core/src/main/java/org/bitcoinj/testing/FakeTxBuilder.java b/core/src/main/java/org/bitcoinj/testing/FakeTxBuilder.java index db41030d8..b6161dcf1 100644 --- a/core/src/main/java/org/bitcoinj/testing/FakeTxBuilder.java +++ b/core/src/main/java/org/bitcoinj/testing/FakeTxBuilder.java @@ -204,7 +204,7 @@ public class FakeTxBuilder { * Roundtrip a transaction so that it appears as if it has just come from the wire */ public static Transaction roundTripTransaction(NetworkParameters params, Transaction tx) { - return new Transaction(params, tx.bitcoinSerialize()); + return new Transaction(params, ByteBuffer.wrap(tx.bitcoinSerialize())); } public static class DoubleSpends {