Merge pull request #23 from DenioD/dev

dev to master
This commit is contained in:
Denio
2019-10-24 23:26:06 +02:00
committed by GitHub
3 changed files with 8 additions and 8 deletions

View File

@@ -382,7 +382,7 @@ impl Command for SendCommand {
h.push("Usage:"); h.push("Usage:");
h.push("send <address> <amount in puposhis> \"optional_memo\""); h.push("send <address> <amount in puposhis> \"optional_memo\"");
h.push("OR"); h.push("OR");
h.push("send '[{'address': <address>, 'amount': <amount in zatoshis>, 'memo': <optional memo>}, ...]'"); h.push("send '[{'address': <address>, 'amount': <amount in puposhis>, 'memo': <optional memo>}, ...]'");
h.push(""); h.push("");
h.push("Example:"); h.push("Example:");
h.push("send ztestsapling1x65nq4dgp0qfywgxcwk9n0fvm4fysmapgr2q00p85ju252h6l7mmxu2jg9cqqhtvzd69jwhgv8d 200000 \"Hello from the command line\""); h.push("send ztestsapling1x65nq4dgp0qfywgxcwk9n0fvm4fysmapgr2q00p85ju252h6l7mmxu2jg9cqqhtvzd69jwhgv8d 200000 \"Hello from the command line\"");

View File

@@ -153,7 +153,7 @@ impl LightWallet {
let extsk: ExtendedSpendingKey = ExtendedSpendingKey::from_path( let extsk: ExtendedSpendingKey = ExtendedSpendingKey::from_path(
&ExtendedSpendingKey::master(bip39_seed), &ExtendedSpendingKey::master(bip39_seed),
&[ &[
ChildIndex::Hardened(31), ChildIndex::Hardened(32),
ChildIndex::Hardened(config.get_coin_type()), ChildIndex::Hardened(config.get_coin_type()),
ChildIndex::Hardened(pos) ChildIndex::Hardened(pos)
], ],
@@ -1343,7 +1343,7 @@ impl LightWallet {
let total_value = tos.iter().map(|to| to.1).sum::<u64>(); let total_value = tos.iter().map(|to| to.1).sum::<u64>();
println!( println!(
"0: Creating transaction sending {} ztoshis to {} addresses", "0: Creating transaction sending {} puposhis to {} addresses",
total_value, tos.len() total_value, tos.len()
); );