Browse Source

addressing Issue #15 about build warnings

pull/25/head
jahway603 1 year ago
parent
commit
2df336c206
  1. 3
      .gitignore
  2. 5
      Makefile
  3. 6
      lib/src/lightwallet.rs

3
.gitignore

@ -3,4 +3,5 @@ target/
history.txt history.txt
/.idea/ /.idea/
tarpaulin-report.html tarpaulin-report.html
/log* /log*
silentdragonlite-cli

5
Makefile

@ -11,10 +11,13 @@ help:
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' @grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
about: ## Display release info about: ## Display release info
printf "Hush Silentdragonlite-cli Makefile by jahway603" printf "Hush Silentdragonlite-cli Makefile by jahway603\n"
build: ## Build the release build: ## Build the release
cargo build --release cargo build --release
cp `pwd`/target/release/$(PROJECT_NAME) .
printf "Hush silentdragonlite-cli is ready for you\n"
clean: ## Clean the repo clean: ## Clean the repo
cargo clean cargo clean
rm $(PROJECT_NAME)

6
lib/src/lightwallet.rs

@ -102,7 +102,7 @@ impl ToBase58Check for [u8] {
payload.extend_from_slice(self); payload.extend_from_slice(self);
payload.extend_from_slice(suffix); payload.extend_from_slice(suffix);
let mut checksum = double_sha256(&payload); let checksum = double_sha256(&payload);
payload.append(&mut checksum[..4].to_vec()); payload.append(&mut checksum[..4].to_vec());
payload.to_base58() payload.to_base58()
} }
@ -199,7 +199,7 @@ impl LightWallet {
let zdustextfvk = ExtendedFullViewingKey::from(&zdustextsk); let zdustextfvk = ExtendedFullViewingKey::from(&zdustextsk);
let zdustaddress = zdustextfvk.default_address().unwrap().1; let zdustaddress = zdustextfvk.default_address().unwrap().1;
(zdustaddress) zdustaddress
} }
pub fn is_shielded_address(addr: &String, config: &LightClientConfig) -> bool { pub fn is_shielded_address(addr: &String, config: &LightClientConfig) -> bool {
@ -1999,7 +1999,7 @@ impl LightWallet {
consensus_branch_id: u32, consensus_branch_id: u32,
spend_params: &[u8], spend_params: &[u8],
output_params: &[u8], output_params: &[u8],
transparent_only: bool, _transparent_only: bool,
tos: Vec<(&str, u64, Option<String>)>, tos: Vec<(&str, u64, Option<String>)>,
broadcast_fn: F broadcast_fn: F
) -> Result<(String, Vec<u8>), String> ) -> Result<(String, Vec<u8>), String>

Loading…
Cancel
Save