fn purse_exists<R>(
        &self,
        uref: URef,
        correlation_id: CorrelationId,
        tracking_copy: Rc<RefCell<TrackingCopy<R>>>,
    ) -> bool
    where
        R: StateReader<Key, StoredValue>,
        R::Error: Into<ExecError>,
    {
        let key = match tracking_copy
            .borrow_mut()
            .get_purse_balance_key(correlation_id, uref.into())
        {
            Ok(key) => key,
            Err(_) => return false,
        };
        tracking_copy
            .borrow_mut()
            .get_purse_balance(correlation_id, key)
            .is_ok()
    }
/// Checks if a purse exists.
Checks if a purse exists.
Checks if a purse exists .
fn purse_exists<R>(
        &self,
        uref: URef,
        correlation_id: CorrelationId,
        tracking_copy: Rc<RefCell<TrackingCopy<R>>>,
    ) -> bool
    where
        R: StateReader<Key, StoredValue>,
        R::Error: Into<ExecError>,
    {
        let key = match tracking_copy
            .borrow_mut()
            .get_purse_balance_key(correlation_id, uref.into())
        {
            Ok(key) => key,
            Err(_) => return false,
        };
        tracking_copy
            .borrow_mut()
            .get_purse_balance(correlation_id, key)
            .is_ok()
    }
fn purse_exists < R > ( & self , uref : URef , correlation_id : CorrelationId , tracking_copy : Rc < RefCell < TrackingCopy < R > > > , ) -> bool where R : StateReader < Key , StoredValue > , R :: Error : Into < ExecError > , { let key = match tracking_copy . borrow_mut ( ) . get_purse_balance_key ( correlation_id , uref . into ( ) ) { Ok ( key ) => key , Err ( _ ) => return false , } ; tracking_copy . borrow_mut ( ) . get_purse_balance ( correlation_id , key ) . is_ok ( ) }
Checks if a purse exists.
Checks if a purse exists .
&self
uref
URef
correlation_id
CorrelationId
tracking_copy
Rc<RefCell<TrackingCopy<R>>>
&self
uref
URef
correlation_id
CorrelationId
tracking_copy
Rc<RefCell<TrackingCopy<R>>>