Skip to content

Commit 8fad128

Browse files
committed
change u8 to bool
1 parent ae15187 commit 8fad128

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

primitives/src/extrinsics/extrinsic_params.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ pub struct GenericSignedExtra<Tip, Index> {
4141
pub nonce: Index,
4242
pub tip: Tip,
4343
#[cfg(feature = "disable-metadata-hash-check")]
44-
pub check_hash: u8,
44+
pub check_hash: bool,
4545
}
4646

4747
impl<Tip, Index> GenericSignedExtra<Tip, Index> {
4848
pub fn new(era: Era, nonce: Index, tip: Tip) -> Self {
4949
#[cfg(feature = "disable-metadata-hash-check")]
5050
{
51-
Self { era, nonce, tip, check_hash: 0 }
51+
Self { era, nonce, tip, check_hash: false }
5252
}
5353
#[cfg(not(feature = "disable-metadata-hash-check"))]
5454
{

0 commit comments

Comments
 (0)