Skip to content

Commit

Permalink
chore: fix missing docs in sbtc cli (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
stjepangolemac authored Aug 30, 2023
1 parent 34ef4cf commit 7b495c2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sbtc-cli/src/commands/generate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ fn generate_credentials(
Network::Bitcoin => AddressVersion::MainnetSingleSig,
_ => panic!("Not supported"),
};
let public_key_hash = Hash160Hasher::from_bytes(&public_key.pubkey_hash().as_hash().to_vec())?;
let public_key_hash = Hash160Hasher::from_bytes(&public_key.pubkey_hash().as_hash())?;
let stacks_address = StacksAddress::new(stacks_address_version, public_key_hash);
let bitcoin_taproot_address_tweaked =
BitcoinAddress::p2tr(&secp, public_key.inner.into(), None, private_key.network).to_string();
Expand Down
8 changes: 8 additions & 0 deletions sbtc-cli/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
#![forbid(missing_docs)]

/*!
sBTC CLI is a tool that allows you to generate and broadcast sBTC transactions.
It also allows you to generate credentials needed to generate transactions and
interact with the Bitcoin and Stacks networks.
*/

use clap::{Parser, Subcommand};

use crate::commands::broadcast::{broadcast_tx, BroadcastArgs};
Expand Down

0 comments on commit 7b495c2

Please sign in to comment.