pub fn credit(&mut self, to: &AccountIdentifier, amount: ICPTs) {
        self.store.update(*to, |prev| {
            let mut balance = match prev {
                Some(x) => *x,
                None => ICPTs::ZERO,
            };
            balance += amount;
            balance
        });
    }
// Crediting an account will automatically add it to the `inner` HashMap if
// not already present.
Crediting an account will automatically add it to the `inner` HashMap if
not already present.
Crediting an account will automatically add it to the ` inner ` HashMap if not already present .
pub fn credit(&mut self, to: &AccountIdentifier, amount: ICPTs) {
        self.store.update(*to, |prev| {
            let mut balance = match prev {
                Some(x) => *x,
                None => ICPTs::ZERO,
            };
            balance += amount;
            balance
        });
    }
pub fn credit ( & mut self , to : & AccountIdentifier , amount : ICPTs ) { self . store . update ( * to , | prev | { let mut balance = match prev { Some ( x ) => * x , None => ICPTs :: ZERO , } ; balance += amount ; balance } ) ; }
Crediting an account will automatically add it to the `inner` HashMap if
not already present.
Crediting an account will automatically add it to the ` inner ` HashMap if not already present .
&mut self
to
&AccountIdentifier
amount
ICPTs
&mut self
to
&AccountIdentifier
amount
ICPTs