summaryrefslogtreecommitdiff
path: root/btc-wire/src/bin/segwit-demo.rs
diff options
context:
space:
mode:
Diffstat (limited to 'btc-wire/src/bin/segwit-demo.rs')
-rw-r--r--btc-wire/src/bin/segwit-demo.rs2
1 files changed, 1 insertions, 1 deletions
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",