diff --git a/rskj-core/src/test/java/co/rsk/peg/bitcoin/BitcoinUtilsTest.java b/rskj-core/src/test/java/co/rsk/peg/bitcoin/BitcoinUtilsTest.java index 69c03d88daf..5740f641af0 100644 --- a/rskj-core/src/test/java/co/rsk/peg/bitcoin/BitcoinUtilsTest.java +++ b/rskj-core/src/test/java/co/rsk/peg/bitcoin/BitcoinUtilsTest.java @@ -346,7 +346,7 @@ void removeSignaturesFromTransaction_whenTransactionInputsDoNotHaveP2shMultiSigI @Test void removeSignaturesFromTransaction_whenNotAllTransactionInputsHaveP2shMultiSigInputScript_shouldThrowIllegalArgumentException() { // arrange - Federation federation = new P2shErpFederationBuilder().build(); + Federation federation = P2shErpFederationBuilder.builder().build(); Script p2shMultiSigScriptSig = federation.getP2SHScript().createEmptyInputScript(null, federation.getRedeemScript()); BtcECKey pubKey = new BtcECKey(); Script p2pkhScriptSig = ScriptBuilder.createInputScript(null, pubKey); @@ -364,7 +364,7 @@ void removeSignaturesFromTransaction_whenNotAllTransactionInputsHaveP2shMultiSig @Test void removeSignaturesFromTransaction_whenTransactionIsLegacyAndInputsHaveP2shMultiSigInputScript_shouldRemoveSignatures() { // arrange - Federation federation = new P2shErpFederationBuilder().build(); + Federation federation = P2shErpFederationBuilder.builder().build(); Script scriptSig = federation.getP2SHScript().createEmptyInputScript(null, federation.getRedeemScript()); BtcTransaction transaction = new BtcTransaction(btcMainnetParams);