Fix warnings

This commit is contained in:
thunderbiscuit 2022-09-29 08:37:51 -04:00
parent 2abccafb8f
commit c971d54aea
No known key found for this signature in database
GPG Key ID: 88253696EB836462

View File

@ -304,10 +304,7 @@ impl NetworkLocalUtxo for LocalUtxo {
},
txout: TxOut {
value: x.txout.value,
address: bdk::bitcoin::util::address::Address::from_script(
&x.txout.script_pubkey,
network,
)
address: Address::from_script(&x.txout.script_pubkey, network)
.unwrap()
.to_string(),
},
@ -1046,7 +1043,7 @@ mod test {
fn get_descriptor_secret_key() -> DescriptorSecretKey {
let mnemonic =
"chaos fabric time speed sponsor all flat solution wisdom trophy crack object robot pave observe combine where aware bench orient secret primary cable detect".to_string();
DescriptorSecretKey::new(Network::Testnet, mnemonic, None).unwrap()
DescriptorSecretKey::new(Testnet, mnemonic, None).unwrap()
}
fn derive_dsk(