Skip to content

Commit

Permalink
Fix dest_json test when not using testnet feature
Browse files Browse the repository at this point in the history
  • Loading branch information
mappum committed Sep 18, 2024
1 parent 764679d commit 0d51d87
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 0d51d87

Please sign in to comment.