Skip to content

Commit

Permalink
fix: parse bitcoin to Bitcoin network
Browse files Browse the repository at this point in the history
we use differently name for bitcoin mainnet. Instead of trying to unify all different writing we convert the most common ones
  • Loading branch information
bonomat committed Jan 23, 2024
1 parent 0843512 commit 003f083
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions mobile/native/src/config/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ pub fn parse_network(network: &str) -> Network {
"signet" => Network::Signet,
"testnet" => Network::Testnet,
"mainnet" => Network::Bitcoin,
"bitcoin" => Network::Bitcoin,
_ => Network::Regtest,
}
}

0 comments on commit 003f083

Please sign in to comment.