pub fn accept_transfer<T, U>(
e: &Env,
active_key: &T,
pending_key: &U,
) -> AddressExpand description
Completes the role transfer if authorization is provided by the pending role holder. Pending role holder is retrieved from the storage.
§Arguments
e- Access to the Soroban environment.active_key- Storage key for the current role holder.pending_key- Storage key for the pending role holder.
§Errors
RoleTransferError::NoPendingTransfer- If there is no pending transfer to accept.