/// Function to process the get-balance command
Function to process the get-balance command
Function to process the get - balance command
fn process_get_balance(&mut self) {
        if let Some(mut handler) = self.wallet_output_service.clone() {
            self.executor.spawn(async move {
                match handler.get_balance().await {
                    Err(e) => {
                        println!("Something went wrong");
                        warn!(target: LOG_TARGET, "Error communicating with wallet: {:?}", e);
                        return;
                    },
                    Ok(data) => println!("Balances:\n{}", data),
                };
            });
        } else {
            println!("Cannot complete command, Wallet is disabled");
        }
    }
fn process_get_balance ( & mut self ) { if let Some ( mut handler ) = self . wallet_output_service . clone ( ) { self . executor . spawn ( async move { match handler . get_balance ( ) . await { Err ( e ) => { println ! ( " " ) ; warn ! ( target LOG_TARGET " " e ) ; return ; } , Ok ( data ) => println ! ( " \n " data ) , } ; } ) ; } else { println ! ( " " ) ; } }
Function to process the get-balance command
Function to process the get - balance command
&mut self