open fun <T : ContractState> toStateAndRef(stateRef: StateRef): StateAndRef<T>
Converts the given StateRef into a StateAndRef object.
TransactionResolutionException - if stateRef points to a non-existent transaction.
TransactionResolutionException