From 0d51d87d25fe387a0e4ee8e9ed55c04eac826b7b Mon Sep 17 00:00:00 2001 From: Matt Bell Date: Wed, 18 Sep 2024 00:33:34 -0500 Subject: [PATCH] Fix dest_json test when not using testnet feature --- src/app.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app.rs b/src/app.rs index 289d892f..75a3d274 100644 --- a/src/app.rs +++ b/src/app.rs @@ -1349,7 +1349,10 @@ fn dest_json() { ) .unwrap(); + #[cfg(feature = "testnet")] let out = "{\"type\":\"bitcoin\",\"data\":\"tb1q2xq57yyxwzkw6tthcxq9mhtxxj7f63e3dgldfj\"}"; + #[cfg(not(feature = "testnet"))] + let out = "{\"type\":\"bitcoin\",\"data\":\"bc1q2xq57yyxwzkw6tthcxq9mhtxxj7f63e38wy7jp\"}"; assert_eq!( Dest::Bitcoin { data: Adapter::new(addr.script_pubkey())