net.corda.core.contracts / withNotary

withNotary

infix fun <T : ContractState> T.withNotary(newNotary: Party): TransactionState<T>