Skip to content

Commit

Permalink
Change call to P2shErpFederationBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
marcos-iov committed Sep 13, 2024
1 parent 8eb82a0 commit 88f01ac
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 88f01ac

Please sign in to comment.