Skip to content

Commit

Permalink
Nits
Browse files Browse the repository at this point in the history
  • Loading branch information
liuchengxu committed Oct 17, 2024
1 parent 669f9d5 commit b51b3ed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/pallet-bitcoin/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,13 @@ pub use pallet::*;
/// Transaction output index.
pub type OutputIndex = u32;

/// Weight functions needed for `pallet_bitcoin`.
pub trait WeightInfo {
/// Calculates the weight of [`Call::transact`].
fn transact(btc_tx: &Transaction) -> Weight;
}

/// A struct that implements the [`WeightInfo`] trait for Bitcoin transactions.
pub struct BitcoinTransactionWeight;

impl WeightInfo for BitcoinTransactionWeight {
Expand Down

0 comments on commit b51b3ed

Please sign in to comment.