mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-01-18 21:32:35 +01:00
FakeTxBuilder: fix accidental use of deprecated method
This commit is contained in:
parent
eb8deb71da
commit
d1b96fbee4
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user