corda / net.corda.core.contracts / OwnableState / withNewOwner

withNewOwner

abstract fun withNewOwner(newOwner: CompositeKey): Pair<CommandData, OwnableState>

Copies the underlying data structure, replacing the owner field with this new value and leaving the rest alone