open fun <T : ContractState> toStateAndRef(ref: StateRef): StateAndRef<T>
Will check logicType and args against a whitelist and if acceptable then construct and initiate the protocol.
IllegalProtocolLogicException
- or IllegalArgumentException if there are problems with the logicType or args.