assertTrue(flags[1]);
Transaction contract = project.completeContract(ImmutableSet.of(commit));
assertEquals(contract.getInput(0).duplicateDetached(), pledge.pledge.getInput(0).duplicateDetached());
List<TransactionOutput> outputs = ImmutableList.of(checkNotNull(pledge.pledge.getInput(0).getConnectedOutput()).duplicateDetached());
project.verifyPledge(outpoint -> CompletableFuture.completedFuture(outputs), commit).get();
}
@Test
public void pledgeImperfectSize() throws Exception {
// Form a pledge that requires a new output to be created by the wallet (the dependency), so we have a correctly