diff options
Diffstat (limited to 'btc-wire')
-rw-r--r-- | btc-wire/Cargo.toml | 8 | ||||
-rw-r--r-- | btc-wire/src/bin/segwit-demo.rs | 2 | ||||
-rw-r--r-- | btc-wire/src/lib.rs | 6 |
3 files changed, 8 insertions, 8 deletions
diff --git a/btc-wire/Cargo.toml b/btc-wire/Cargo.toml index d6a120c..5955a66 100644 --- a/btc-wire/Cargo.toml +++ b/btc-wire/Cargo.toml @@ -3,7 +3,7 @@ name = "btc-wire" version = "0.1.0"
edition = "2021"
license = "AGPL-3.0-or-later"
-rust-version = "1.63.0"
+rust-version = "1.72.1"
[features]
# Enable random failures
@@ -11,13 +11,13 @@ fail = [] [dependencies]
# Typed bitcoin rpc types
-bitcoin = { version = "0.30.1", features = [
+bitcoin = { version = "0.31.0", features = [
"std",
"serde",
], default-features = false }
# Cli args parser
clap = { version = "4.4.6", features = ["derive"] }
-clap_lex = "0.5.1"
+clap_lex = "0.6.0"
# Bech32 encoding and decoding
bech32 = "0.9.1"
# Serialization library
@@ -30,7 +30,7 @@ data-encoding = "2.4.0" # Common lib
common = { path = "../common" }
# Ini parser
-rust-ini = "0.19.0"
+rust-ini = "0.20.0"
# Hexadecimal encoding
hex = { package = "const-hex", version = "1.9.1" }
diff --git a/btc-wire/src/bin/segwit-demo.rs b/btc-wire/src/bin/segwit-demo.rs index 26f95f0..579f0da 100644 --- a/btc-wire/src/bin/segwit-demo.rs +++ b/btc-wire/src/bin/segwit-demo.rs @@ -54,7 +54,7 @@ pub fn main() { hex::encode(&second_half) ); // bech32: https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki - let hrp = match address.network { + let hrp = match address.network() { Network::Bitcoin => "bc", Network::Testnet | Network::Signet => "tb", Network::Regtest => "bcrt", diff --git a/btc-wire/src/lib.rs b/btc-wire/src/lib.rs index 750e4d4..05842b1 100644 --- a/btc-wire/src/lib.rs +++ b/btc-wire/src/lib.rs @@ -60,7 +60,7 @@ impl Rpc { amount: &Amount, metadata: &[u8; 32], ) -> rpc::Result<Txid> { - let hrp = match to.network { + let hrp = match to.network() { Network::Bitcoin => "bc", Network::Testnet | Network::Signet => "tb", Network::Regtest => "bcrt", @@ -70,11 +70,11 @@ impl Rpc { let addresses = [ Address::from_str(&addresses[0]) .unwrap() - .require_network(to.network) + .require_network(*to.network()) .unwrap(), Address::from_str(&addresses[1]) .unwrap() - .require_network(to.network) + .require_network(*to.network()) .unwrap(), ]; let mut recipients = vec![(to, amount)]; |