use of com.hederahashgraph.api.proto.java.ResponseCodeEnum.UNRESOLVABLE_REQUIRED_SIGNERS in project hedera-services by hashgraph.
the class ScheduleExecutionSpecs method scheduledSubmitThatWouldFailWithInvalidTopicIdCannotBeScheduled.
private HapiApiSpec scheduledSubmitThatWouldFailWithInvalidTopicIdCannotBeScheduled() {
String civilianPayer = "somebody";
AtomicReference<Map<AccountID, Long>> successFeesObs = new AtomicReference<>();
AtomicReference<Map<AccountID, Long>> failureFeesObs = new AtomicReference<>();
return defaultHapiSpec("ScheduledSubmitThatWouldFailWithInvalidTopicIdCannotBeScheduled").given(cryptoCreate(civilianPayer), createTopic("fascinating")).when(scheduleCreate("yup", submitMessageTo("fascinating").message("Little did they care who danced between / " + "And little she by whom her dance was seen")).payingWith(civilianPayer).via("creation"), scheduleCreate("nope", submitMessageTo("1.2.3").message("Little did they care who danced between / " + "And little she by whom her dance was seen")).payingWith(civilianPayer).via("nothingShouldBeCreated").hasKnownStatus(UNRESOLVABLE_REQUIRED_SIGNERS)).then(getTxnRecord("creation").revealingDebitsTo(successFeesObs::set), getTxnRecord("nothingShouldBeCreated").revealingDebitsTo(failureFeesObs::set).logged(), assertionsHold((spec, opLog) -> assertBasicallyIdentical(successFeesObs.get(), failureFeesObs.get(), 1.0)));
}
Aggregations