Fix warnings
This commit is contained in:
parent
2abccafb8f
commit
c971d54aea
11
src/lib.rs
11
src/lib.rs
@ -304,12 +304,9 @@ impl NetworkLocalUtxo for LocalUtxo {
|
|||||||
},
|
},
|
||||||
txout: TxOut {
|
txout: TxOut {
|
||||||
value: x.txout.value,
|
value: x.txout.value,
|
||||||
address: bdk::bitcoin::util::address::Address::from_script(
|
address: Address::from_script(&x.txout.script_pubkey, network)
|
||||||
&x.txout.script_pubkey,
|
.unwrap()
|
||||||
network,
|
.to_string(),
|
||||||
)
|
|
||||||
.unwrap()
|
|
||||||
.to_string(),
|
|
||||||
},
|
},
|
||||||
keychain: x.keychain,
|
keychain: x.keychain,
|
||||||
is_spent: x.is_spent,
|
is_spent: x.is_spent,
|
||||||
@ -1046,7 +1043,7 @@ mod test {
|
|||||||
fn get_descriptor_secret_key() -> DescriptorSecretKey {
|
fn get_descriptor_secret_key() -> DescriptorSecretKey {
|
||||||
let mnemonic =
|
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();
|
"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(
|
fn derive_dsk(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user