FakeTxBuilder: fix accidental use of deprecated method

This commit is contained in:
Andreas Schildbach 2023-04-03 10:18:32 +02:00
parent eb8deb71da
commit d1b96fbee4

View File

@ -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 {