Skip to content

Commit

Permalink
client_rs: bump bitcoin 0.32 and miniscript 12.2
Browse files Browse the repository at this point in the history
  • Loading branch information
edouardparis committed Aug 22, 2024
1 parent 0d4106d commit 083e37d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions bitcoin_client_rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ paranoid_client = ["miniscript"]

[dependencies]
async-trait = { version = "0.1", optional = true }
bitcoin = { version = "0.31", default-features = false, features = ["no-std"] }
miniscript = { version = "11.0", optional = true, default-features = false, features = ["no-std"] }
bitcoin = { version = "0.32", default-features = false }
miniscript = { version = "12.2", optional = true, default-features = false, features = ["no-std"] }

[workspace]
members = ["examples/ledger_hwi"]
Expand Down
2 changes: 1 addition & 1 deletion bitcoin_client_rs/src/async_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ impl<T: Transport> BitcoinClient<T> {
BitcoinClientError::ClientError("Failed to derive descriptor".to_string())
})?
.script_pubkey()
!= expected_address.payload().script_pubkey()
!= expected_address.assume_checked_ref().script_pubkey()
{
return Err(BitcoinClientError::InvalidResponse("Invalid address. Please update your Bitcoin app. If the problem persists, report a bug at https://github.com/LedgerHQ/app-bitcoin-new".to_string()));
}
Expand Down
2 changes: 1 addition & 1 deletion bitcoin_client_rs/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ impl<T: Transport> BitcoinClient<T> {
BitcoinClientError::ClientError("Failed to derive descriptor".to_string())
})?
.script_pubkey()
!= expected_address.payload().script_pubkey()
!= expected_address.assume_checked_ref().script_pubkey()
{
return Err(BitcoinClientError::InvalidResponse("Invalid address. Please update your Bitcoin app. If the problem persists, report a bug at https://github.com/LedgerHQ/app-bitcoin-new".to_string()));
}
Expand Down
2 changes: 1 addition & 1 deletion bitcoin_client_rs/src/psbt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use bitcoin::{
consensus::encode::{deserialize, serialize, VarInt},
ecdsa,
hashes::Hash,
key::Error as KeyError,
key::FromSliceError as KeyError,
psbt::{raw, Input, Output, Psbt},
secp256k1::{self, XOnlyPublicKey},
taproot,
Expand Down

0 comments on commit 083e37d

Please sign in to comment.