addressing Issue #15 about build warnings

This commit is contained in:
jahway603
2022-12-08 21:12:12 -05:00
parent 981c0e1ae8
commit 2df336c206
3 changed files with 9 additions and 5 deletions

3
.gitignore vendored
View File

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

View File

@@ -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}'
about: ## Display release info
printf "Hush Silentdragonlite-cli Makefile by jahway603"
printf "Hush Silentdragonlite-cli Makefile by jahway603\n"
build: ## Build the release
cargo build --release
cp `pwd`/target/release/$(PROJECT_NAME) .
printf "Hush silentdragonlite-cli is ready for you\n"
clean: ## Clean the repo
cargo clean
rm $(PROJECT_NAME)

View File

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