corda / net.corda.core.contracts / DummyContract / SingleOwnerState / withNewOwner

withNewOwner

fun withNewOwner(newOwner: CompositeKey): Pair<Move, SingleOwnerState>

Overrides OwnableState.withNewOwner

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