fn clean_owner_confirmations(&mut self, owner: &AccountId) {
            for trans_id in &self.transaction_list.transactions {
                let key = (*trans_id, *owner);
                if self.confirmations.get(&key).is_some() {
                    self.confirmations.remove(&key);
                    let mut count = self.confirmation_count.get(&trans_id).unwrap_or(0);
                    count -= 1;
                    self.confirmation_count.insert(&trans_id, &count);
                }
            }
        }
/// Remove all confirmation state associated with `owner`.
/// Also adjusts the `self.confirmation_count` variable.
Remove all confirmation state associated with `owner`.
Also adjusts the `self.confirmation_count` variable.
Remove all confirmation state associated with ` owner ` . Also adjusts the ` self . confirmation_count ` variable .
fn clean_owner_confirmations(&mut self, owner: &AccountId) {
            for trans_id in &self.transaction_list.transactions {
                let key = (*trans_id, *owner);
                if self.confirmations.get(&key).is_some() {
                    self.confirmations.remove(&key);
                    let mut count = self.confirmation_count.get(&trans_id).unwrap_or(0);
                    count -= 1;
                    self.confirmation_count.insert(&trans_id, &count);
                }
            }
        }
fn clean_owner_confirmations ( & mut self , owner : & AccountId ) { for trans_id in & self . transaction_list . transactions { let key = ( * trans_id , * owner ) ; if self . confirmations . get ( & key ) . is_some ( ) { self . confirmations . remove ( & key ) ; let mut count = self . confirmation_count . get ( & trans_id ) . unwrap_or ( 0 ) ; count -= 1 ; self . confirmation_count . insert ( & trans_id , & count ) ; } } }
Remove all confirmation state associated with `owner`.
Remove all confirmation state associated with ` owner ` .
&mut self
owner
&AccountId
&mut self
owner
&AccountId