Skip to content

Commit

Permalink
Merge pull request #77 from availproject/ghali/fix-discriminant
Browse files Browse the repository at this point in the history
fix discriminant
  • Loading branch information
Leouarz authored Feb 29, 2024
2 parents 1ecd262 + e369794 commit 861f35a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/src/header/extension/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub mod v3;
#[cfg_attr(feature = "runtime", derive(PassByCodec))]
#[repr(u8)]
pub enum HeaderExtension {
V3(v3::HeaderExtension) = 3,
V3(v3::HeaderExtension) = 2,

Check warning on line 19 in core/src/header/extension/mod.rs

View workflow job for this annotation

GitHub Actions / build_and_test

casting integer literal to `u8` is unnecessary
}

/// It forwards the call to the inner version of the header. Any invalid version will return the
Expand Down
2 changes: 1 addition & 1 deletion core/src/header/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ mod tests {
assert_eq!(
hash,
H256(hex!(
"0aaeda45f6b0258b5453c11c77c6cdedae3739c90a1a82851cfa5646236dc497"
"c9941af1cb862db9f2e4c0c94f457d1217b363ecf6e6cc0dbeb5cbfeb35fbc12"
))
);

Expand Down
2 changes: 1 addition & 1 deletion core/src/header_version/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ use sp_runtime_interface::pass_by::PassByCodec;
#[derive(Debug, Clone, Copy, Eq, PartialEq, Encode, Decode, TypeInfo)]
#[cfg_attr(feature = "runtime", derive(PassByCodec))]
pub enum HeaderVersion {
V3 = 3, // Current one
V3 = 2, // Current one
}

0 comments on commit 861f35a

Please sign in to comment.