pub fn update(&mut self, new_wallet: CustomerState<E>) -> bool {
        // update everything except for the wpk/wsk pair
        assert!(self.name == new_wallet.name);
        self.cust_balance = new_wallet.cust_balance;
        self.merch_balance = new_wallet.merch_balance;
        self.t = new_wallet.t;
        self.old_kp = new_wallet.old_kp;
        self.wpk = new_wallet.wpk;
        self.wsk = new_wallet.wsk;
        self.w_com = new_wallet.w_com;
        self.wallet = new_wallet.wallet;
        self.index = new_wallet.index;
        self.close_tokens = new_wallet.close_tokens;
        self.pay_tokens = new_wallet.pay_tokens;

        return true;
    }
// update the internal state of the customer wallet
update the internal state of the customer wallet
update the internal state of the customer wallet
pub fn update(&mut self, new_wallet: CustomerState<E>) -> bool {
        // update everything except for the wpk/wsk pair
        assert!(self.name == new_wallet.name);
        self.cust_balance = new_wallet.cust_balance;
        self.merch_balance = new_wallet.merch_balance;
        self.t = new_wallet.t;
        self.old_kp = new_wallet.old_kp;
        self.wpk = new_wallet.wpk;
        self.wsk = new_wallet.wsk;
        self.w_com = new_wallet.w_com;
        self.wallet = new_wallet.wallet;
        self.index = new_wallet.index;
        self.close_tokens = new_wallet.close_tokens;
        self.pay_tokens = new_wallet.pay_tokens;
        return true;
    }
pub fn update ( & mut self , new_wallet : CustomerState < E > ) -> bool { // update everything except for the wpk/wsk pair assert ! ( self name new_wallet name ) ; self . cust_balance = new_wallet . cust_balance ; self . merch_balance = new_wallet . merch_balance ; self . t = new_wallet . t ; self . old_kp = new_wallet . old_kp ; self . wpk = new_wallet . wpk ; self . wsk = new_wallet . wsk ; self . w_com = new_wallet . w_com ; self . wallet = new_wallet . wallet ; self . index = new_wallet . index ; self . close_tokens = new_wallet . close_tokens ; self . pay_tokens = new_wallet . pay_tokens ; return true ; }
update the internal state of the customer wallet
update the internal state of the customer wallet
&mut self
new_wallet
CustomerState<E>
&mut self
new_wallet
CustomerState<E>