accept_transfer

Function accept_transfer 

Source
pub fn accept_transfer<T, U>(
    e: &Env,
    active_key: &T,
    pending_key: &U,
) -> Address
where T: IntoVal<Env, Val>, U: IntoVal<Env, Val>,
Expand 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