chainline-contracts / chainline.contracts / HubContract / res_replaceRecipientAt

res_replaceRecipientAt

private fun ReservationList.res_replaceRecipientAt(idx: Int, recipient: ScriptHash): ReservationList (source)

Finds the reserved funds object at the given idx and replaces its recipient with the one given.

Parameters

index - the zero-based index of the Reservation to replace the recipient in

recipient - the recipient to replace the existing one with in the Reservation

Return
the new ReservationList containing the replaced entry