use of com.hedera.services.legacy.core.jproto.JEd25519Key in project hedera-services by hashgraph.
the class PlatformSigOpsTest method doesntIgnoreUnrecognizedProblemForScheduledSig.
@Test
void doesntIgnoreUnrecognizedProblemForScheduledSig() throws Throwable {
final JKey scheduledKey = new JEd25519Key("01234578901234578901234578901".getBytes());
scheduledKey.setForScheduledTxn(true);
given(sigBytes.sigBytesFor(any())).willThrow(IllegalStateException.class);
final var result = createCryptoSigsFrom(List.of(scheduledKey), sigBytes, sigFactory);
assertTrue(result.hasFailed());
}
Aggregations