Function ink_env::rent_status[][src]

pub fn rent_status<T>(at_refcount: Option<NonZeroU32>) -> Result<RentStatus<T>> where
    T: Environment
Expand description

Returns information about the required deposit and resulting rent.

Parameters

  • at_refcount: The refcount assumed for the returned custom_refcount_* fields. If None is supplied the custom_refcount_* fields will also be None.

    The current_* fields of RentStatus do not consider changes to the code’s refcount made during the currently running call.

Errors

If the returned value cannot be properly decoded.