port to hush

This commit is contained in:
DenioD
2019-10-18 09:45:35 +02:00
parent cead0062bd
commit e7d272ce42
10 changed files with 86 additions and 86 deletions

View File

@@ -127,7 +127,7 @@ struct BalanceCommand {}
impl Command for BalanceCommand {
fn help(&self) -> String {
let mut h = vec![];
h.push("Show the current ZEC balance in the wallet");
h.push("Show the current HUSH balance in the wallet");
h.push("Usage:");
h.push("balance");
h.push("");
@@ -137,7 +137,7 @@ impl Command for BalanceCommand {
}
fn short_help(&self) -> String {
"Show the current ZEC balance in the wallet".to_string()
"Show the current HUSH balance in the wallet".to_string()
}
fn exec(&self, _args: &[&str], lightclient: &LightClient) -> String {
@@ -206,7 +206,7 @@ struct SendCommand {}
impl Command for SendCommand {
fn help(&self) -> String {
let mut h = vec![];
h.push("Send ZEC to a given address");
h.push("Send HUSH to a given address");
h.push("Usage:");
h.push("send <address> <amount in zatoshis> \"optional_memo\"");
h.push("");
@@ -218,7 +218,7 @@ impl Command for SendCommand {
}
fn short_help(&self) -> String {
"Send ZEC to the given address".to_string()
"Send HUSH to the given address".to_string()
}
fn exec(&self, args: &[&str], lightclient: &LightClient) -> String {
@@ -232,7 +232,7 @@ impl Command for SendCommand {
let value = match args[1].parse::<u64>() {
Ok(amt) => amt,
Err(e) => {
return format!("Couldn't parse amount: {}", e);
return format!("Couldn't parse amount: {}", e);;
}
};