refactor(chain)!: update KeychainTxOutIndex methods to use owned ScriptBuf

This commit is contained in:
Steve Myers committed 2024-07-21 20:28:01 -05:00
1 parent 7c07b9de02
commit 79262185d5
9 files changed
+55 -53

No files matched your search

+1 -1
View File
@@ -502,7 +502,7 @@ where
false => Keychain::External,
};
for (spk_i, spk) in index.revealed_keychain_spks(target_keychain) {
let address = Address::from_script(spk, network)
let address = Address::from_script(spk.as_script(), network)
.expect("should always be able to derive address");
println!(
"{:?} {} used:{}",