Skip to content
This repository was archived by the owner on Feb 3, 2025. It is now read-only.

Commit e39a107

Browse files
Merge pull request #1092 from MutinyWallet/fix-network-recs
Assume mainnet for fedimint recommendations
2 parents 4514d70 + 8188c66 commit e39a107

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

mutiny-core/src/nostr/mod.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1690,8 +1690,12 @@ impl<S: MutinyStorage> NostrManager<S> {
16901690
}
16911691
});
16921692

1693+
// if the network tag is missing, we assume it is on mainnet
1694+
let network_tag = network_tag
1695+
.as_deref()
1696+
.unwrap_or(network_to_string(Network::Bitcoin));
16931697
// skip if the network doesn't match
1694-
if network_tag.is_none() || network_tag.unwrap() != network_str {
1698+
if network_tag != network_str {
16951699
continue;
16961700
}
16971701

0 commit comments

Comments
 (0)