Skip to content

Commit

Permalink
change u8 to bool
Browse files Browse the repository at this point in the history
  • Loading branch information
haerdib committed Sep 19, 2024
1 parent ae15187 commit 8fad128
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions primitives/src/extrinsics/extrinsic_params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ pub struct GenericSignedExtra<Tip, Index> {
pub nonce: Index,
pub tip: Tip,
#[cfg(feature = "disable-metadata-hash-check")]
pub check_hash: u8,
pub check_hash: bool,
}

impl<Tip, Index> GenericSignedExtra<Tip, Index> {
pub fn new(era: Era, nonce: Index, tip: Tip) -> Self {
#[cfg(feature = "disable-metadata-hash-check")]
{
Self { era, nonce, tip, check_hash: 0 }
Self { era, nonce, tip, check_hash: false }
}
#[cfg(not(feature = "disable-metadata-hash-check"))]
{
Expand Down

0 comments on commit 8fad128

Please sign in to comment.