Save and Read wallet

This commit is contained in:
Aditya Kulkarni
2019-09-06 13:13:14 -07:00
parent 81b6b52ba0
commit 7ebc8686ed
6 changed files with 284 additions and 28 deletions

View File

@@ -16,7 +16,7 @@ pub mod grpc_client {
pub fn main() {
let light_client = LightClient::new();
let mut light_client = LightClient::new();
// `()` can be used when no completer is required
let mut rl = Editor::<()>::new();
@@ -28,7 +28,7 @@ pub fn main() {
match readline {
Ok(line) => {
rl.add_history_entry(line.as_str());
commands::do_user_command(line, &light_client);
commands::do_user_command(line, &mut light_client);
},
Err(ReadlineError::Interrupted) => {
println!("CTRL-C");