Saving new address
@@ -509,6 +509,10 @@ fn set_address(current_address: &mut Option<AccountId>, params: &[&str]) {
return;
}
+ std::fs::write("last_address", vec.clone()).expect("Couldn't save wallet address");
+
+ println!("New wallet address {}", params[0]);
+
*current_address = Some(AccountId::from(vec));
} else {
println!("Couldn't parse address");
