fun withNewOwnerAndAmount(newAmount: Amount<Issued<Terms<P>>>, newOwner: AbstractParty): State<P>
Copies the underlying data structure, replacing the amount and owner fields with the new values and leaving the rest (exitKeys) alone.